From a6d07ed7e405ac061ea9226f805d6a2a15bd3904 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 26 Sep 2019 16:00:16 +0200 Subject: [PATCH] Fix BTree::GetIntersecting() --- libsrc/meshing/delaunay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/delaunay.cpp b/libsrc/meshing/delaunay.cpp index 0ff41dc7..50f5a45d 100644 --- a/libsrc/meshing/delaunay.cpp +++ b/libsrc/meshing/delaunay.cpp @@ -132,11 +132,12 @@ namespace netgen for (int d = 0; d < dim; d++) if (p[d] > tpmax[d]) - continue; + intersect = false; for (int d = dim; d < 2*dim; d++) if (p[d] < tpmin[d]) - continue; - pis.Append (leaf->index[i]); + intersect = false; + if(intersect) + pis.Append (leaf->index[i]); } } else