1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #include "python_shared.h"
- #include <sstream>
- #include <string>
- #include <fstream>
- extern void python_export_vector(py::module &);
- extern void python_export_igl(py::module &);
- #ifdef PY_VIEWER
- extern void python_export_igl_viewer(py::module &);
- #endif
- #ifdef PY_COMISO
- extern void python_export_igl_comiso(py::module &);
- #endif
- #ifdef PY_TETGEN
- extern void python_export_igl_tetgen(py::module &);
- #endif
- #ifdef PY_EMBREE
- extern void python_export_igl_embree(py::module &);
- #endif
- #ifdef PY_TRIANGLE
- extern void python_export_igl_triangle(py::module &);
- #endif
- #ifdef PY_CGAL
- extern void python_export_igl_cgal(py::module &);
- #endif
- #ifdef PY_PNG
- extern void python_export_igl_png(py::module &);
- #endif
- PYBIND11_PLUGIN(pyigl) {
- py::module m("pyigl", R"pyigldoc(
- Python wrappers for libigl
- --------------------------
- .. currentmodule:: pyigl
- .. autosummary::
- :toctree: _generate
- % for f in functions:
- ${f}
- % endfor
- )pyigldoc");
- python_export_vector(m);
- python_export_igl(m);
- #ifdef PY_VIEWER
- python_export_igl_viewer(m);
- #endif
- #ifdef PY_COMISO
- python_export_igl_comiso(m);
- #endif
- #ifdef PY_TETGEN
- python_export_igl_tetgen(m);
- #endif
- #ifdef PY_EMBREE
- python_export_igl_embree(m);
- #endif
- #ifdef PY_TRIANGLE
- python_export_igl_triangle(m);
- #endif
- #ifdef PY_CGAL
- python_export_igl_cgal(m);
- #endif
- #ifdef PY_PNG
- python_export_igl_png(m);
- #endif
- return m.ptr();
- }
|