From df81490f86798153f253d55cfec9231cf5a5fabe Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 27 Mar 2020 13:26:34 +0100 Subject: [PATCH] Don't run wire intersection checks on parallel edge pairs --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index dac5b3b00a..b2a75f0083 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -3736,7 +3736,7 @@ bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListO ); // @todo: extend this to work in case of multiple extrema and curved segments. - const bool unbounded_intersects = (ecc.NbExtrema() == 1 && ecc.Distance(1) < eps); + const bool unbounded_intersects = (!ecc.Extrema().IsParallel() && ecc.NbExtrema() == 1 && ecc.Distance(1) < eps); if (unbounded_intersects) { ecc.Parameters(1, U1, U2);