occ - respect maxh property of solids

This commit is contained in:
mhochsteger@cerbsim.com 2021-09-13 12:47:36 +02:00
parent 8ae602b5bf
commit 8b36df94a1

View File

@ -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();