mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Don't run wire intersection checks on parallel edge pairs
This commit is contained in:
@@ -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.
|
// @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) {
|
if (unbounded_intersects) {
|
||||||
ecc.Parameters(1, U1, U2);
|
ecc.Parameters(1, U1, U2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user