mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
export enum MeshingStep
This commit is contained in:
parent
f582c7935f
commit
bd39b8df88
@ -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>)
|
||||
|
Loading…
Reference in New Issue
Block a user