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:
Jürg Lehni 2015-09-30 14:19:40 -05:00
parent d385d25a51
commit 5f706a4a5d

View file

@ -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.