python.cpp 580 B

123456789101112131415161718192021222324252627
  1. #include "python.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. extern void python_export_igl_viewer(py::module &);
  8. #ifdef PY_COMISO
  9. extern void python_export_igl_comiso(py::module &);
  10. #endif
  11. PYTHON_PLUGIN(igl) {
  12. py::init_threading();
  13. py::module m("igl", "Python wrappers for libigl");
  14. python_export_vector(m);
  15. python_export_igl(m);
  16. python_export_igl_viewer(m);
  17. #ifdef PY_COMISO
  18. python_export_igl_comiso(m);
  19. #endif
  20. return m.ptr();
  21. }