mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Reduce radius on wire intersections
This commit is contained in:
@@ -2863,7 +2863,7 @@ bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListO
|
|||||||
if (i == n - 1 && j == 0) continue;
|
if (i == n - 1 && j == 0) continue;
|
||||||
|
|
||||||
bool unbounded_intersects;
|
bool unbounded_intersects;
|
||||||
const double eps = getValue(GV_PRECISION) * 10.;
|
const double eps = getValue(GV_PRECISION) * 2.;
|
||||||
|
|
||||||
double u11, u12, u21, u22, U1, U2;
|
double u11, u12, u21, u22, U1, U2;
|
||||||
GeomAPI_ExtremaCurveCurve ecc(
|
GeomAPI_ExtremaCurveCurve ecc(
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolyline* l, TopoDS_Wire& resu
|
|||||||
polygon.Append(pnt);
|
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;
|
const bool closed_by_proximity = polygon.Length() >= 2 && polygon.First().Distance(polygon.Last()) < eps;
|
||||||
if (closed_by_proximity) {
|
if (closed_by_proximity) {
|
||||||
// tfk: note 1-based
|
// 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
|
// 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);
|
remove_duplicate_points_from_loop(polygon, true, eps);
|
||||||
|
|
||||||
int count = polygon.Length();
|
int count = polygon.Length();
|
||||||
|
|||||||
Reference in New Issue
Block a user