mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Export Mesh::CalcMinMaxAngle
This commit is contained in:
parent
e887a2862b
commit
d32d498259
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user