From 8b36df94a13bd9c486cbf423acff723f68ab8321 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Mon, 13 Sep 2021 12:47:36 +0200 Subject: [PATCH] occ - respect maxh property of solids --- libsrc/occ/occgenmesh.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index b38f385e..aadaff72 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -1095,6 +1095,10 @@ namespace netgen maxhdom.SetSize (geom.NrSolids()); maxhdom = mparam.maxh; + int dom = 0; + for (TopExp_Explorer e(geom.GetShape(), TopAbs_SOLID); e.More(); e.Next(), dom++) + maxhdom[dom] = min2(maxhdom[dom], OCCGeometry::global_shape_properties[e.Current().TShape()].maxh); + mesh.SetMaxHDomain (maxhdom); Box<3> bb = geom.GetBoundingBox();