From d32d49825959b2c3930b34eab6ee08e7b4c72bbc Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 16 Sep 2019 12:11:49 +0200 Subject: [PATCH] Export Mesh::CalcMinMaxAngle --- libsrc/meshing/python_mesh.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 1717d56a..727d476b 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -974,6 +974,15 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) *m2 = self; return m2; }) + .def ("CalcMinMaxAngle", [](Mesh & self, double badel_limit) + { + double values[4]; + self.CalcMinMaxAngle (badel_limit, values); + py::dict res; + res["trig"] = py::make_tuple( values[0], values[1] ); + res["tet"] = py::make_tuple( values[2], values[3] ); + return res; + }, py::arg("badelement_limit")=175.0) ; m.def("ImportMesh", [](const string& filename)