Merge branch 'export_python_calclocalh' into 'master'

export CalcLocalH and SetMaxHDomain to Python

See merge request !65
This commit is contained in:
Joachim Schöberl 2017-10-12 16:17:55 +02:00
commit 45912fba10

View File

@ -643,6 +643,14 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
py::arg("pid2"), py::arg("pid2"),
py::arg("identnr"), py::arg("identnr"),
py::arg("type")) py::arg("type"))
.def ("CalcLocalH", &Mesh::CalcLocalH)
.def ("SetMaxHDomain", [] (Mesh& self, py::list maxhlist)
{
Array<double> maxh;
for(auto el : maxhlist)
maxh.Append(py::cast<double>(el));
self.SetMaxHDomain(maxh);
})
.def ("GenerateVolumeMesh", .def ("GenerateVolumeMesh",
[](Mesh & self, py::object pymp) [](Mesh & self, py::object pymp)
{ {