thelonious / kld-intersections

A library of intersection algorithms covering all SVG shape types
BSD 3-Clause "New" or "Revised" License
343 stars 55 forks source link

self intersection #10

Closed yukulele closed 7 years ago

yukulele commented 7 years ago

how to dectect a collision of sharpe on itself (path or polygon) ?

thelonious commented 7 years ago

Hi yukulele,

There currently isn't support for detecting self-intersecting shape intersections. You could brute force this with polygons by testing each segment against all the other segments. LIkewise, you could do the same with path segments. Note, however, that this will not be very efficient, but may be acceptable performance-wise for small numbers of segments.

thelonious commented 7 years ago

closing due to inactivity