From fa15b083b0e99d72ea4ace079e9fe5e881d31787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 31 Dec 2015 14:23:16 +0100 Subject: [PATCH] Go back to matching curve beginnings / ends with GEOMETRIC_EPSILON. This is possible because we're handling the special line case separately before already. --- src/path/Curve.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 1a222bdf..0b43d7a5 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1727,10 +1727,6 @@ new function() { // Scope for intersection using bezier fat-line clipping var straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straight = straight1 && straight2, - // NOTE: Use smaller Numerical.EPSILON to compare beginnings and - // end points to avoid matching them on almost collinear lines, - // see: https://github.com/paperjs/paper.js/issues/777 - epsilon = /*#=*/Numerical.EPSILON, before = locations.length; // Determine the correct intersection method based on whether one or // curves are straight lines: