From d7f913d4645482e9b9d3320bc9ae2ef31955eb10 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 31 May 2022 11:14:35 +0200 Subject: [PATCH] #2218 Decreate (hardcode) angular tolerance on boolean op extrusion detection --- src/ifcgeom/IfcGeomFunctions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index f156692b0d..2a9eead084 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -560,13 +560,14 @@ namespace { continue; } + // @todo use a linear tolernace and the face extrimities, see #2218 const TopoDS_Edge& e = TopoDS::Edge(s); if (!get_edge_axis(e, ax)) { // curved curved_orthogonal.Add(e); - } else if (ax.IsParallel(V, 1.e-5)) { + } else if (ax.IsParallel(V, 1.e-7)) { parallel.Append(e); - } else if (ax.IsNormal(V, 1.e-5)) { + } else if (ax.IsNormal(V, 1.e-7)) { // ortho curved_orthogonal.Add(e); } else {