Open iOSjhx opened 11 months ago
Thanks for sending in this error case - it's very helpful for me to track down bugs with test cases like this.
Unfortunately, I don't have a quick fix for you, but I do have some workarounds that might help. sometimes the algorithm finds more consistently with large paths, so you can try scaling the paths by 100x → find intersections → scale intersections down by 1/100. Anther option is to bump one of the paths by a very small amount, translating it by a very small epsilon → find intersections.
First of all thank you for your ClippingBezier library, it's very useful for me. I encountered a problem,I can't find the intersection of two path, but they do.
first path is unclosed:
second path is closed:
use method :
[path1 findIntersectionsWithClosedPath:path2 andBeginsInside:nil];