From 10f4bca5d2359226db17f6985935f28c75e396ac Mon Sep 17 00:00:00 2001 From: Jesse Vander Does Date: Sat, 6 Feb 2021 09:38:38 -0600 Subject: [PATCH] Moved no wire flag inside of wire_intersections method --- src/ifcgeom/IfcGeomFunctions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index b8d32cf691..c6d0f964c4 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -1157,7 +1157,7 @@ bool IfcGeom::Kernel::convert_wire_to_faces(const TopoDS_Wire& w, TopoDS_Compoun } TopTools_ListOfShape results; - if (getValue(GV_NO_WIRE_INTERSECTION_CHECK) < 0. && wire_intersections(w, results)) { + if (wire_intersections(w, results)) { Logger::Warning("Self-intersections with " + boost::lexical_cast(results.Extent()) + " cycles detected"); } else { results.Clear(); @@ -3799,6 +3799,11 @@ namespace { } bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListOfShape& wires) { + + if (getValue(GV_NO_WIRE_INTERSECTION_CHECK) > 0.) { + return false; + } + if (!wire.Closed()) { wires.Append(wire); return false;