mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Export OCC module only when configured with OCC
This commit is contained in:
parent
0c611c339c
commit
c9ac332971
@ -17,7 +17,9 @@ void DLL_HEADER ExportCSGVis(py::module &m);
|
||||
void DLL_HEADER ExportGeom2d(py::module &m);
|
||||
void DLL_HEADER ExportSTL(py::module &m);
|
||||
void DLL_HEADER ExportSTLVis(py::module &m);
|
||||
#ifdef OCCGEOMETRY
|
||||
void DLL_HEADER ExportNgOCC(py::module &m);
|
||||
#endif // OCCGEOMETRY
|
||||
|
||||
PYBIND11_PLUGIN(libngpy)
|
||||
{
|
||||
@ -30,8 +32,10 @@ PYBIND11_PLUGIN(libngpy)
|
||||
ExportGeom2d(geom2d);
|
||||
py::module stl = ngpy.def_submodule("_stl", "pybind stl module");
|
||||
ExportSTL(stl);
|
||||
#ifdef OCCGEOMETRY
|
||||
py::module NgOCC = ngpy.def_submodule("_NgOCC", "pybind NgOCC module");
|
||||
ExportNgOCC(NgOCC);
|
||||
#endif // OCCGEOMETRY
|
||||
#ifdef OPENGL
|
||||
py::module meshvis = ngpy.def_submodule("meshvis", "pybind meshvis module");
|
||||
ExportMeshVis(meshvis);
|
||||
|
Loading…
Reference in New Issue
Block a user