From 3ba7d2c276c3ef3bf408d3cf998be45a5c05606f Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 17 May 2017 16:04:56 +0200 Subject: [PATCH] add meshsizefilename to python meshingparameters --- libsrc/meshing/python_mesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 04d00d10..b4c3f8d3 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -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)