From 9790774b498c3fb88e4ebdf3765ccb10e3703f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 15 Dec 2016 13:05:34 +0100 Subject: [PATCH] change to SurfaceElementIndex --- libsrc/meshing/python_mesh.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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); }))