python_shared.mako 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include "python_shared.h"
  2. #include <sstream>
  3. #include <string>
  4. #include <fstream>
  5. extern void python_export_vector(py::module &);
  6. extern void python_export_igl(py::module &);
  7. #ifdef PY_VIEWER
  8. extern void python_export_igl_viewer(py::module &);
  9. #endif
  10. #ifdef PY_COMISO
  11. extern void python_export_igl_comiso(py::module &);
  12. #endif
  13. PYBIND11_PLUGIN(pyigl) {
  14. py::module m("pyigl", R"pyigldoc(
  15. Python wrappers for libigl
  16. --------------------------
  17. .. currentmodule:: pyigl
  18. .. autosummary::
  19. :toctree: _generate
  20. % for f in functions:
  21. ${f}
  22. % endfor
  23. )pyigldoc");
  24. python_export_vector(m);
  25. python_export_igl(m);
  26. #ifdef PY_VIEWER
  27. python_export_igl_viewer(m);
  28. #endif
  29. #ifdef PY_COMISO
  30. python_export_igl_comiso(m);
  31. #endif
  32. return m.ptr();
  33. }