Fix starting point for intersection searching

This commit is contained in:
Matthias Hochsteger 2021-03-24 12:03:40 +01:00
parent 6b41cdac9f
commit b431a07c74

View File

@ -804,8 +804,8 @@ void ComputeIntersections(Edge edgeP , Loop & l2)
{ {
for (Edge edgeQ : l2.Edges(SOURCE)) for (Edge edgeQ : l2.Edges(SOURCE))
{ {
double alpha = -1; double alpha = -EPSILON;
double beta = -1; double beta = -EPSILON;
IntersectionType i = intersect(edgeP, edgeQ, alpha, beta); IntersectionType i = intersect(edgeP, edgeQ, alpha, beta);
AddIntersectionPoint(edgeP, edgeQ, i, alpha, beta); AddIntersectionPoint(edgeP, edgeQ, i, alpha, beta);
if(i==X_INTERSECTION && (edgeP.v0->spline || edgeQ.v0->spline)) if(i==X_INTERSECTION && (edgeP.v0->spline || edgeQ.v0->spline))