diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index f6d8a2a0..ed927e6c 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -446,18 +446,19 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) { return self.AddFaceDescriptor (fd); })) - - .def ("DeleteSurfaceElement", FunctionPointer ([](Mesh & self, int i) - { - return self.DeleteSurfaceElement (i); - })) - + + .def ("DeleteSurfaceElement", + FunctionPointer ([](Mesh & self, SurfaceElementIndex i) + { + return self.DeleteSurfaceElement (i); + })) + .def ("Compress", FunctionPointer ([](Mesh & self) - { - return self.Compress (); - })) - - + { + return self.Compress (); + })) + + .def ("SetBCName", &Mesh::SetBCName) .def ("GetBCName", FunctionPointer([](Mesh & self, int bc)->string { return self.GetBCName(bc); }))