mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'export_python_calclocalh' into 'master'
export CalcLocalH and SetMaxHDomain to Python See merge request !65
This commit is contained in:
commit
45912fba10
@ -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<double> maxh;
|
||||
for(auto el : maxhlist)
|
||||
maxh.Append(py::cast<double>(el));
|
||||
self.SetMaxHDomain(maxh);
|
||||
})
|
||||
.def ("GenerateVolumeMesh",
|
||||
[](Mesh & self, py::object pymp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user