Export Mesh.GetCurveOrder() to Python

This commit is contained in:
Matthias Hochsteger 2025-04-28 15:31:47 +02:00
parent 494b0ae37c
commit aa66cd11c4

View File

@ -1300,6 +1300,10 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
.def("IdentifyPeriodicBoundaries", &Mesh::IdentifyPeriodicBoundaries, .def("IdentifyPeriodicBoundaries", &Mesh::IdentifyPeriodicBoundaries,
py::arg("identification_name"), py::arg("face1"), py::arg("mapping"), py::arg("identification_name"), py::arg("face1"), py::arg("mapping"),
py::arg("point_tolerance") = -1.) py::arg("point_tolerance") = -1.)
.def("GetCurveOrder", [] (Mesh & self)
{
return self.GetCurvedElements().GetOrder();
})
.def("GetNrIdentifications", [](Mesh& self) .def("GetNrIdentifications", [](Mesh& self)
{ {
return self.GetIdentifications().GetMaxNr(); return self.GetIdentifications().GetMaxNr();