Export Mesh::CalcMinMaxAngle

This commit is contained in:
Matthias Hochsteger 2019-09-16 12:11:49 +02:00
parent e887a2862b
commit d32d498259

View File

@ -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)