forked from libigl/libigl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpython_shared.cpp
More file actions
67 lines (48 loc) · 1.2 KB
/
Copy pathpython_shared.cpp
File metadata and controls
67 lines (48 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#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
PYBIND11_PLUGIN(pyigl) {
py::module m("pyigl", R"pyigldoc(
Python wrappers for libigl
--------------------------
.. currentmodule:: pyigl
.. autosummary::
:toctree: _generate
)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
return m.ptr();
}