add meshsizefilename to python meshingparameters

This commit is contained in:
Christopher Lackner 2017-05-17 16:04:56 +02:00
parent 9a7307fb39
commit 3ba7d2c276

View File

@ -687,7 +687,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
.def(py::init<>())
.def("__init__",
[](MP *instance, double maxh, bool quad_dominated, int optsteps2d, int optsteps3d,
MESHING_STEP perfstepsend, int only3D_domain)
MESHING_STEP perfstepsend, int only3D_domain, const string & meshsizefilename)
{
new (instance) MeshingParameters;
instance->maxh = maxh;
@ -696,6 +696,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
instance->optsteps3d = optsteps3d;
instance->only3D_domain_nr = only3D_domain;
instance->perfstepsend = perfstepsend;
instance->meshsizefilename = meshsizefilename;
},
py::arg("maxh")=1000,
py::arg("quad_dominated")=false,
@ -703,6 +704,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
py::arg("optsteps3d") = 3,
py::arg("perfstepsend") = MESHCONST_OPTVOLUME,
py::arg("only3D_domain") = 0,
py::arg("meshsizefilename") = "",
"create meshing parameters"
)
.def("__str__", &ToString<MP>)