From 2835597c2138ea0687d203cb6bc4bfc9069cf1cf Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 12 Oct 2017 12:55:07 +0200 Subject: [PATCH] export CalcLocalH and SetMaxHDomain to Python --- libsrc/meshing/python_mesh.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 510b3372..b3a7210a 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -643,6 +643,14 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) py::arg("pid2"), py::arg("identnr"), py::arg("type")) + .def ("CalcLocalH", &Mesh::CalcLocalH) + .def ("SetMaxHDomain", [] (Mesh& self, py::list maxhlist) + { + Array maxh; + for(auto el : maxhlist) + maxh.Append(py::cast(el)); + self.SetMaxHDomain(maxh); + }) .def ("GenerateVolumeMesh", [](Mesh & self, py::object pymp) {