diff --git a/libsrc/stlgeom/CMakeLists.txt b/libsrc/stlgeom/CMakeLists.txt index a78658ae..436cf3e4 100644 --- a/libsrc/stlgeom/CMakeLists.txt +++ b/libsrc/stlgeom/CMakeLists.txt @@ -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) diff --git a/ng/netgenpy.cpp b/ng/netgenpy.cpp index 32d9c694..e47b1f90 100644 --- a/ng/netgenpy.cpp +++ b/ng/netgenpy.cpp @@ -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(); }