~/talk

Integrate Python and C++ with pybind11

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [python]
slides:none on file

Shows how to expose parts of the Seagull computational-geometry library (constrained/conforming triangulation, meshing, Lloyd optimization) to Python using pybind11 header-only C++11, CMake and a setup.py glue layer, wrapping value types, overloaded methods, iterator ranges and ownership semantics. Demonstrates making points hashable and iterable, building a Python API that calls into C++ and returns data structures, and producing 89,000 vertices and 178,000 triangles in about a second. Includes practical patterns like make_iterator and typed_input_iterator for Python/C++ iteration.

AI-written summary · about

  1. 0:00Start
  2. 4:17Boost Python
  3. 5:27Extend Python with C + +
  4. 6:34Embedding
  5. 9:41Main Program
  6. 9:53Unrolled Loop
  7. 10:20Constraints
  8. 10:46Emeasure
  9. 19:46Insert the Points into the Triangulation
  10. 21:59Properties
  11. 24:55Numpy
  12. 25:29Insert Method
  13. 26:07Insert the Constraints
  14. 27:19Seed Points
  15. 31:01Refine the Mesh
  16. 41:47Do I Recommend Pi Bind 11
  17. 47:41Gdb Plugins
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.