adamwulf / ClippingBezier

ClippingBezier calculates intersection points, paths, and shapes between two UIBezierPaths
http://getlooseleaf.com/opensource/
MIT License
254 stars 34 forks source link

How to work on a case where both the paths are unclosed? #27

Open Rajkiran93 opened 2 years ago

Rajkiran93 commented 2 years ago

Hi, Adam first of all thank you very much for creating such a wonderful library, I'm trying to find the intersection of 2 unclosed paths but right now I don't think the library supports this...are there any plans for this?

adamwulf commented 2 years ago

Hi! I'm glad to hear you're enjoying the library :)

the method findIntersectionsWithClosedPath:andBeginsInside: is unfortunately named - it will in fact return intersection points for two unclosed paths. It's on my todo list to make a 2.0 version of this package that would simply clean up the method names and public functions so that it's clearer. Does that method return what you need if you try it on two unclosed paths?