From 2220fc093f6ae43271785fcc099e90d820ade65f Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 21 Feb 2025 11:43:37 +0100 Subject: [PATCH] export restrictlocalh of netgen mesh --- libsrc/meshing/python_mesh.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 837b62a6..6825a2fd 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -994,7 +994,11 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def("FaceDescriptor", static_cast (&Mesh::GetFaceDescriptor), py::return_value_policy::reference) .def("GetNFaceDescriptors", &Mesh::GetNFD) - + .def("RestrictLocalH", [](Mesh& self, const Point<3>& pnt, double maxh, + int layer) + { + self.RestrictLocalH(pnt, maxh, layer); + }, py::arg("p"), py::arg("h"), py::arg("layer")=1) .def("FaceDescriptors", // static_cast&(Mesh::*)()> (&Mesh::FaceDescriptors), &Mesh::FaceDescriptors,