From 25d2e497b1940ba9b7a8bff325361274c1e173f3 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 12 Dec 2016 10:47:05 +0100 Subject: [PATCH] add python stl submodule --- libsrc/stlgeom/CMakeLists.txt | 2 +- ng/netgenpy.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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(); }