From 6c44a273cea9252f894e3c69ab22e52ce3f171f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 7 Sep 2016 09:00:39 +0200 Subject: [PATCH] more options --- libsrc/meshing/python_mesh.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index bcddd800..eb14c78d 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -571,17 +571,21 @@ DLL_HEADER void ExportNetgenMeshing() typedef MeshingParameters MP; bp::class_ ("MeshingParameters", bp::init<>()) .def("__init__", bp::make_constructor - (FunctionPointer ([](double maxh, bool quad_dominated) + (FunctionPointer ([](double maxh, bool quad_dominated, int optsteps2d, int optsteps3d) { auto tmp = new MeshingParameters; tmp->maxh = maxh; tmp->quad = int(quad_dominated); + tmp->optsteps2d = optsteps2d; + tmp->optsteps3d = optsteps3d; return tmp; }), bp::default_call_policies(), // need it to use arguments ( bp::arg("maxh")=1000, - bp::arg("quad_dominated")=false + bp::arg("quad_dominated")=false, + bp::arg("optsteps2d") = 3, + bp::arg("optsteps3d") = 3 )), "create meshing parameters" )