From 69bc02a74da6ce90c475437e4e3f95d39417523f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 17 Mar 2021 17:35:30 +0100 Subject: [PATCH] Increase bounding box for curved elements by 20% in element search tree --- libsrc/meshing/meshclass.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 3aff354b..efa24e4a 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -4851,6 +4851,11 @@ namespace netgen for (auto pi : volelements[ei].PNums()) box.Add (points[pi]); + auto & el = volelements[ei]; + if(el.IsCurved()) + box.Increase(1.2*box.Diam()); + + elementsearchtree -> Insert (box, ei+1); } }