mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Increase the fat-line clipping recursion threshold to 26.
As suggested by @iconexperience. Closes #899
This commit is contained in:
parent
0c3406894b
commit
3857be62c4
1 changed files with 2 additions and 3 deletions
|
@ -1438,9 +1438,8 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
||||||
// Avoid deeper recursion.
|
// Avoid deeper recursion.
|
||||||
// NOTE: @iconexperience determined that more than 20 recursions are
|
// NOTE: @iconexperience determined that more than 20 recursions are
|
||||||
// needed sometimes, depending on the tDiff threshold values further
|
// needed sometimes, depending on the tDiff threshold values further
|
||||||
// below when determining which curve converges the least. He also
|
// below when determining which curve converges the least: #565, #899
|
||||||
// recommended a threshold of 0.5 instead of the initial 0.8, see: #565
|
if (++recursion >= 26)
|
||||||
if (++recursion >= 24)
|
|
||||||
return;
|
return;
|
||||||
// Let P be the first curve and Q be the second
|
// Let P be the first curve and Q be the second
|
||||||
var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],
|
var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],
|
||||||
|
|
Loading…
Reference in a new issue