Re: Another graphical challenge...

2008-04-18 Thread Erik Buck
Micro Tile Arrays are a general solution for minimal rectangular decomposition of arbitrary shapes. The overlapping rectangles problem is the simplest case and easily solved by utas. Here is an open source implementation: http://www.levien.com/libart/uta.html ___

Re: Another graphical challenge...

2008-04-18 Thread Graham Cox
Richard, thanks very much for applying yourself to this problem. You make it seem easy, and it works a treat. I obviously haven't drunk enough coffee today as it looked a lot harder than it turned out to be! Here's my ready-to-use Cocoa-conversion, if anyone else wants to make use of it.

Re: Another graphical challenge...

2008-04-18 Thread Richard Kennaway
Sorry, that should have gone just to the original poster. -- Richard Kennaway ___ 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)lis

Re: Another graphical challenge...

2008-04-18 Thread Richard Kennaway
Quoting Graham Cox <[EMAIL PROTECTED]>: This is not really a Cocoa-specific problem, but before I embark on a long-winded quest, I just wonder if there's a solution out there already. Given two rectangles that overlap in some way, I need to create a list of all the rectangles that make up the n

Another graphical challenge...

2008-04-18 Thread Graham Cox
This is not really a Cocoa-specific problem, but before I embark on a long-winded quest, I just wonder if there's a solution out there already. Given two rectangles that overlap in some way, I need to create a list of all the rectangles that make up the non-overlapping areas. In other wor