add python stl submodule

This commit is contained in:
Christopher Lackner 2016-12-12 10:47:05 +01:00
parent 6e60338987
commit 25d2e497b1
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
add_library(stl ${NG_LIB_TYPE}
meshstlsurface.cpp stlgeom.cpp stlgeomchart.cpp
stlgeommesh.cpp stlline.cpp stltool.cpp stltopology.cpp
stlgeommesh.cpp stlline.cpp stltool.cpp stltopology.cpp python_stl.cpp
)
if(NOT WIN32)

View File

@ -15,6 +15,7 @@ void DLL_HEADER ExportMeshVis(py::module &m);
void DLL_HEADER ExportCSG(py::module &m);
void DLL_HEADER ExportCSGVis(py::module &m);
void DLL_HEADER ExportGeom2d(py::module &m);
void DLL_HEADER ExportSTL(py::module &m);
PYBIND11_PLUGIN(libngpy)
{
@ -29,6 +30,8 @@ PYBIND11_PLUGIN(libngpy)
ExportMeshVis(meshvis);
py::module geom2d = ngpy.def_submodule("_geom2d", "pybind geom2d module");
ExportGeom2d(geom2d);
py::module stl = ngpy.def_submodule("_stl", "pybind stl module");
ExportSTL(stl);
return ngpy.ptr();
}