diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 69e5d5d4..ba85c585 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -586,12 +586,18 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) ; + py::enum_(m,"MeshingStep") + .value("MESHEDGES",MESHCONST_MESHEDGES) + .value("MESHSURFACE",MESHCONST_OPTSURFACE) + .value("MESHVOLUME",MESHCONST_OPTVOLUME) + ; + typedef MeshingParameters MP; py::class_ (m, "MeshingParameters") .def(py::init<>()) .def("__init__", [](MP *instance, double maxh, bool quad_dominated, int optsteps2d, int optsteps3d, - int perfstepsend) + MESHING_STEP perfstepsend) { new (instance) MeshingParameters; instance->maxh = maxh; @@ -604,7 +610,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) py::arg("quad_dominated")=false, py::arg("optsteps2d") = 3, py::arg("optsteps3d") = 3, - py::arg("perfstepsend") = 6, + py::arg("perfstepsend") = MESHCONST_OPTVOLUME, "create meshing parameters" ) .def("__str__", &ToString)