From 721fe4729aa5302efe1602971aae2558934ad098 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 17 Sep 2021 11:18:32 +0200 Subject: [PATCH] Fix another ommision with tree.select(extend) --- src/ifcgeom/IfcGeomTree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomTree.h b/src/ifcgeom/IfcGeomTree.h index 027cd3d9038..a168c5f9101 100644 --- a/src/ifcgeom/IfcGeomTree.h +++ b/src/ifcgeom/IfcGeomTree.h @@ -220,7 +220,7 @@ namespace IfcGeom { const TopoDS_Shape& B = shapes_.find(*it)->second; if (extend > 0.0) { BRepExtrema_DistShapeShape dss(v, B); - if (dss.Perform() && dss.NbSolution() >= 1) { + if (dss.Perform() && dss.NbSolution() >= 1 && dss.Value() <= extend) { ts_filtered.push_back(*it); } } else {