From 589f4bda2ecdd02366225b541376576c04a2da27 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 8 May 2018 16:19:47 +0200 Subject: [PATCH] ... but keep close point removal at 10 times precision --- src/ifcgeom/IfcGeomWires.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomWires.cpp b/src/ifcgeom/IfcGeomWires.cpp index 935aeedfd6..e1e2ed4781 100644 --- a/src/ifcgeom/IfcGeomWires.cpp +++ b/src/ifcgeom/IfcGeomWires.cpp @@ -397,7 +397,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu polygon.Append(pnt); } - const double eps = getValue(GV_PRECISION) * 2.; + const double eps = getValue(GV_PRECISION) * 10; const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps; if (closed_by_proximity) { // tfk: note 1-based @@ -439,7 +439,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyLoop* l, TopoDS_Wire& resu } // Remove points that are too close to one another - const double eps = getValue(GV_PRECISION) * 2.; + const double eps = getValue(GV_PRECISION) * 10; remove_duplicate_points_from_loop(polygon, true, eps); int count = polygon.Length();