export enum MeshingStep

This commit is contained in:
Christopher Lackner 2016-12-05 14:39:09 +01:00
parent f582c7935f
commit bd39b8df88

View File

@ -586,12 +586,18 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
;
py::enum_<MESHING_STEP>(m,"MeshingStep")
.value("MESHEDGES",MESHCONST_MESHEDGES)
.value("MESHSURFACE",MESHCONST_OPTSURFACE)
.value("MESHVOLUME",MESHCONST_OPTVOLUME)
;
typedef MeshingParameters MP;
py::class_<MP> (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<MP>)