mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 22:50:33 +05:00
more options
This commit is contained in:
parent
8725d45425
commit
6c44a273ce
@ -571,17 +571,21 @@ DLL_HEADER void ExportNetgenMeshing()
|
|||||||
typedef MeshingParameters MP;
|
typedef MeshingParameters MP;
|
||||||
bp::class_<MP> ("MeshingParameters", bp::init<>())
|
bp::class_<MP> ("MeshingParameters", bp::init<>())
|
||||||
.def("__init__", bp::make_constructor
|
.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;
|
auto tmp = new MeshingParameters;
|
||||||
tmp->maxh = maxh;
|
tmp->maxh = maxh;
|
||||||
tmp->quad = int(quad_dominated);
|
tmp->quad = int(quad_dominated);
|
||||||
|
tmp->optsteps2d = optsteps2d;
|
||||||
|
tmp->optsteps3d = optsteps3d;
|
||||||
return tmp;
|
return tmp;
|
||||||
}),
|
}),
|
||||||
bp::default_call_policies(), // need it to use arguments
|
bp::default_call_policies(), // need it to use arguments
|
||||||
(
|
(
|
||||||
bp::arg("maxh")=1000,
|
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"
|
"create meshing parameters"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user