Increase bounding box for curved elements by 20% in element search tree

This commit is contained in:
Matthias Hochsteger 2021-03-17 17:35:30 +01:00
parent 98770dbf94
commit 69bc02a74d

View File

@ -4851,6 +4851,11 @@ namespace netgen
for (auto pi : volelements[ei].PNums()) for (auto pi : volelements[ei].PNums())
box.Add (points[pi]); box.Add (points[pi]);
auto & el = volelements[ei];
if(el.IsCurved())
box.Increase(1.2*box.Diam());
elementsearchtree -> Insert (box, ei+1); elementsearchtree -> Insert (box, ei+1);
} }
} }