python.cpp 437 B

12345678910111213141516171819
  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. PYTHON_PLUGIN(igl) {
  9. py::init_threading();
  10. py::module m("igl", "Python wrappers for libigl");
  11. python_export_vector(m);
  12. python_export_igl(m);
  13. python_export_igl_viewer(m);
  14. return m.ptr();
  15. }