mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Explain about self-intersection handling in getIntersections()
This commit is contained in:
parent
e2c87a6666
commit
5dd26f5b9f
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ PathItem.inject(new function() {
|
|||
_path1.reverse();
|
||||
if (_path2 && !(subtract ^ _path2.isClockwise()))
|
||||
_path2.reverse();
|
||||
// Split curves at intersections on both paths.
|
||||
// Split curves at intersections on both paths. Note that for self
|
||||
// intersection, _path2 will be null and getIntersections() handles it.
|
||||
splitPath(_path1.getIntersections(_path2, true));
|
||||
|
||||
var chain = [],
|
||||
|
|
Loading…
Reference in a new issue