On 8 Mar 2014, at 2:24 pm, Noah Desch <desc...@me.com> wrote:

> ’ve written a category on NSBezierPath that allows boolean operations on 
> paths (union, intersection, subtraction) which preserves curved elements 
> throughout the operation and does not require "flattening" paths into line 
> segments prior to processing.
> 
> I thought this might be a generally useful bit of code so I am making it 
> available on GitHub:
> https://github.com/wiresoft/WFBezierCombinatorics
> 
> I hope others may find this useful.


Hi Noah,

Indeed, this is a potentially a very useful body of code.

I have several implementations, some which flatten and others that do not, but 
the non-flattening cases are not always totally reliable. This can be a very 
hard problem to solve. I have a number of test cases that I can throw at the 
code that might show up problems - I'll be glad to give your code a whirl. 
Which algorithm did you employ?

Thanks for doing this and making it available so cheaply (!) It's something 
that I've always thought should be part of NSBezierPath as standard (especially 
as Core Graphics must have the code in there already to calculate clipping path 
intersections).

--Graham




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to