From e7e90d1a68ce280c790f2100ed1ff10b6c8d266b Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 18 Nov 2016 16:57:42 +0100 Subject: [PATCH] cd2names to python export --- libsrc/meshing/python_mesh.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 533e95a7..7d581090 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -401,6 +401,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def("FaceDescriptor", static_cast (&Mesh::GetFaceDescriptor), py::return_value_policy::reference) .def("GetNFaceDescriptors", &Mesh::GetNFD) + + .def("GetNCD2Names", &Mesh::GetNCD2Names) .def("__getitem__", FunctionPointer ([](const Mesh & self, PointIndex pi) @@ -445,6 +447,9 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr) { return string(self.GetMaterial(domnr)); })) + .def ("GetCD2Name", &Mesh::GetCD2Name) + .def("SetCD2Name", &Mesh::SetCD2Name) + .def ("AddPointIdentification", [](Mesh & self, py::object pindex1, py::object pindex2, int identnr, int type) { if(py::extract(pindex1).check() && py::extract(pindex2).check())