From b431a07c741613cff16895d3423401a6849f6612 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 24 Mar 2021 12:03:40 +0100 Subject: [PATCH] Fix starting point for intersection searching --- libsrc/geom2d/csg2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/geom2d/csg2d.cpp b/libsrc/geom2d/csg2d.cpp index 99a45b65..f43d2cb0 100644 --- a/libsrc/geom2d/csg2d.cpp +++ b/libsrc/geom2d/csg2d.cpp @@ -804,8 +804,8 @@ void ComputeIntersections(Edge edgeP , Loop & l2) { for (Edge edgeQ : l2.Edges(SOURCE)) { - double alpha = -1; - double beta = -1; + double alpha = -EPSILON; + double beta = -EPSILON; IntersectionType i = intersect(edgeP, edgeQ, alpha, beta); AddIntersectionPoint(edgeP, edgeQ, i, alpha, beta); if(i==X_INTERSECTION && (edgeP.v0->spline || edgeQ.v0->spline))