mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
occ - apply maxh setting to all children
This commit is contained in:
parent
8b36df94a1
commit
0a15ce5c2b
@ -792,7 +792,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
},
|
},
|
||||||
[](TopoDS_Shape& self, double val)
|
[](TopoDS_Shape& self, double val)
|
||||||
{
|
{
|
||||||
OCCGeometry::global_shape_properties[self.TShape()].maxh = val;
|
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE })
|
||||||
|
for (TopExp_Explorer e(self, typ); e.More(); e.Next())
|
||||||
|
{
|
||||||
|
auto & maxh = OCCGeometry::global_shape_properties[e.Current().TShape()].maxh;
|
||||||
|
maxh = min2(val, maxh);
|
||||||
|
}
|
||||||
}, "maximal mesh-size for shape")
|
}, "maximal mesh-size for shape")
|
||||||
|
|
||||||
.def_property("col", [](const TopoDS_Shape & self) {
|
.def_property("col", [](const TopoDS_Shape & self) {
|
||||||
|
Loading…
Reference in New Issue
Block a user