Reduce radius on wire intersections

This commit is contained in:
Thomas Krijnen
2018-05-08 09:41:19 +02:00
parent bd9875fae5
commit 8ffc12e6cd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2863,7 +2863,7 @@ bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListO
if (i == n - 1 && j == 0) continue;
bool unbounded_intersects;
const double eps = getValue(GV_PRECISION) * 10.;
const double eps = getValue(GV_PRECISION) * 2.;
double u11, u12, u21, u22, U1, U2;
GeomAPI_ExtremaCurveCurve ecc(
+2 -2
View File
@@ -397,7 +397,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu
polygon.Append(pnt);
}
const double eps = getValue(GV_PRECISION) * 10;
const double eps = getValue(GV_PRECISION) * 2.;
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) * 10;
const double eps = getValue(GV_PRECISION) * 2.;
remove_duplicate_points_from_loop(polygon, true, eps);
int count = polygon.Length();