mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use lower tolerance in bezier clipping code.
This really should be Numerical.CURVETIME_EPSILON, but I get better results using Numerical.GEOMETRIC_EPSILON. Perhaps Numerical.CURVETIME_EPSILON / 2 is the right value to use though.
This commit is contained in:
parent
d385d25a51
commit
5f706a4a5d
1 changed files with 1 additions and 1 deletions
|
@ -1428,7 +1428,7 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
return;
|
||||
// Let P be the first curve and Q be the second
|
||||
var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],
|
||||
epsilon = /*#=*/Numerical.CURVETIME_EPSILON,
|
||||
epsilon = /*#=*/Numerical.GEOMETRIC_EPSILON,
|
||||
getSignedDistance = Line.getSignedDistance,
|
||||
// Calculate the fat-line L for Q is the baseline l and two
|
||||
// offsets which completely encloses the curve P.
|
||||
|
|
Loading…
Reference in a new issue