domainwise meshing and optimization enabled

This commit is contained in:
Christopher Lackner
2016-12-02 14:59:59 +01:00
parent e31cc7dfa1
commit 0d36c69c25
4 changed files with 25 additions and 8 deletions

View File

@@ -590,18 +590,21 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
py::class_<MP> (m, "MeshingParameters")
.def(py::init<>())
.def("__init__",
[](MP *instance, double maxh, bool quad_dominated, int optsteps2d, int optsteps3d)
[](MP *instance, double maxh, bool quad_dominated, int optsteps2d, int optsteps3d,
int only3D_domain)
{
new (instance) MeshingParameters;
instance->maxh = maxh;
instance->quad = int(quad_dominated);
instance->optsteps2d = optsteps2d;
instance->optsteps3d = optsteps3d;
instance->optsteps3d = optsteps3d;
instance->only3D_domain_nr = only3D_domain;
},
py::arg("maxh")=1000,
py::arg("quad_dominated")=false,
py::arg("optsteps2d") = 3,
py::arg("optsteps3d") = 3
py::arg("optsteps3d") = 3,
py::arg("only3D_domain") = 0
,
"create meshing parameters"
)