From aa66cd11c4c85da4d38e2c4aa11e82e9fea818ab Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 28 Apr 2025 15:31:47 +0200 Subject: [PATCH] Export Mesh.GetCurveOrder() to Python --- libsrc/meshing/python_mesh.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index dc0d2a60..e0e73858 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -1300,6 +1300,10 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def("IdentifyPeriodicBoundaries", &Mesh::IdentifyPeriodicBoundaries, py::arg("identification_name"), py::arg("face1"), py::arg("mapping"), py::arg("point_tolerance") = -1.) + .def("GetCurveOrder", [] (Mesh & self) + { + return self.GetCurvedElements().GetOrder(); + }) .def("GetNrIdentifications", [](Mesh& self) { return self.GetIdentifications().GetMaxNr();