diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index d6d4c605..c5438103 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -6,6 +6,8 @@ #include #include "meshing.hpp" +#include +#include using namespace netgen; @@ -454,6 +456,18 @@ DLL_HEADER void ExportNetgenMeshing() Refinement().Refine(self); })) + .def ("SetGeometry", FunctionPointer + ([](Mesh & self, shared_ptr geo) + { + self.SetGeometry(geo); + })) + + .def ("SetGeometry", FunctionPointer + ([](Mesh & self, shared_ptr geo) + { + self.SetGeometry(geo); + })) + .def ("BuildSearchTree", &Mesh::BuildElementSearchTree) .def ("BoundaryLayer", FunctionPointer