From 456cb927d11b5eb8b7af81b52f9f5d3d5afd6de3 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 5 May 2022 18:09:42 +0200 Subject: [PATCH] make shape.solids.maxh = ... consistent with solid.maxh = ... --- libsrc/occ/python_occ_shapes.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 7f5ba84b..44bbf1b5 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -1675,7 +1675,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) { for(auto& shape : shapes) { - OCCGeometry::global_shape_properties[shape.TShape()].maxh = maxh; + for(auto& s : GetSolids(shape)) + OCCGeometry::global_shape_properties[s.TShape()].maxh = maxh; + for(auto& s : GetFaces(shape)) + OCCGeometry::global_shape_properties[s.TShape()].maxh = maxh; + for(auto& s : GetEdges(shape)) + OCCGeometry::global_shape_properties[s.TShape()].maxh = maxh; + for(auto& s : GetVertices(shape)) + OCCGeometry::global_shape_properties[s.TShape()].maxh = maxh; } }, "set maxh for all elements of list") .def_property("hpref", [](ListOfShapes& shapes)