local mesh-size in MeshingParameters via Python

This commit is contained in:
Joachim Schöberl
2016-09-29 16:44:16 +02:00
parent b7a869b77f
commit ff84375089
4 changed files with 29 additions and 3 deletions

View File

@@ -593,7 +593,13 @@ DLL_HEADER void ExportNetgenMeshing()
.add_property("maxh",
FunctionPointer ([](const MP & mp ) { return mp.maxh; }),
FunctionPointer ([](MP & mp, double maxh) { return mp.maxh = maxh; }))
.def("RestrictH", FunctionPointer
([](MP & mp, double x, double y, double z, double h)
{
mp.meshsize_points.Append ( MeshingParameters::MeshSizePoint (Point<3> (x,y,z), h));
}),
(bp::arg("x"), bp::arg("y"), bp::arg("z"), bp::arg("h"))
)
;
bp::def("SetTestoutFile", FunctionPointer ([] (const string & filename)