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

Bring in SVG Path Element support #13

Closed thelonious closed 7 years ago

thelonious commented 7 years ago

This may be buried deep in the 2D library on KevLinDev. Regardless, it looks like I missed porting this over, so I should pull this code in.

thelonious commented 7 years ago

Support for processing path segments has been added. We treat each segment as individual IntersectionArgs instances.

In order to build the path segments, something like kld-path-parser can be helpful as seen in this example