Skip to content

Commit

Permalink
Fix incorrect check for Intersecting curves
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh committed Sep 7, 2022
1 parent e19fe39 commit f3027eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TriangleNet_Engine/Compute/VoronoiRegions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ private static bool AnyIntersectingNotEndPoints(this List<ICurve> curves, List<P
else
mustIncludePts[i].Add(point);

if (point.SquareDistance(stPt) < sqTol)
if (point.SquareDistance(c2.IStartPoint()) < sqTol)
offsetStart[j] = endPt = true;
else if (point.SquareDistance(enPt) < sqTol)
else if (point.SquareDistance(c2.IEndPoint()) < sqTol)
offsetEnd[j] = endPt = true;
else
mustIncludePts[j].Add(point);
Expand Down

0 comments on commit f3027eb

Please sign in to comment.