Closed stringertheory closed 10 years ago
Which version of the library are you experiencing this with? It works for me on sketch:
Sorry, had a typo in previous code example (the line did not go through a vertex of triangle). Just updated the comment, and updated on sketch: http://sketch.paperjs.org/#S/dc6xCsIwEAbgVwlZTKCEKBTB4uTkJrhmSdKzLY05SFIdxHc3taAWdbv7kvvvbtTrM9ANPfaQbEsLarEe+4sORJMt8XAlB51apjyZGux8YrIgkhdzKzOWX5pxKSVXnlfKa2EdRqhzcAoDPOXUObdDhyHjwrgBFpmVHw8w/w9Ylb+WrSedlhkRU8AeXuEB6nd2/g4hgk0d+phftWgg7T+RmTHF5godCIcNm83wit4f
I was a small issue in the PathItem#getIntersections.
@lehni I have fixed it.
Previously, when we had only 2 intersections, one of which is a duplicate of other —typical in this case since the intersection is on the vertex between two curves; we were removing both intersections wrongly.
These steps will reproduce the problem:
intersections
is a blank list after this.