diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 6ecd6266..56b545b1 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -1209,7 +1209,16 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def ("GetCD3Name", &Mesh::GetCD3Name) .def ("SetCD3Name", &Mesh::SetCD3Name) - + .def("GetIdentifications", [](Mesh & self) -> py::list + { + py::list points; + for(const auto& pair : self.GetIdentifications().GetIdentifiedPoints()) + { + py::tuple pnts = py::make_tuple(pair.first.I1(), pair.first.I2()); + points.append(pnts); + } + return points; + }) .def ("AddPointIdentification", [](Mesh & self, py::object pindex1, py::object pindex2, int identnr, Identifications::ID_TYPE type) { if(py::extract(pindex1).check() && py::extract(pindex2).check()) diff --git a/python/occ.py b/python/occ.py index 666c91ed..38d313ef 100644 --- a/python/occ.py +++ b/python/occ.py @@ -14,7 +14,7 @@ if not USE_OCC: raise ImportError("Netgen was not built with Opencascade support") from .libngpy._NgOCC import * -from .meshing import meshsize +from .meshing import meshsize, IdentificationType gp_Ax3 = Axes