thudfactor
September 16th, 2008, 11:51 PM
I've been searching all over for pointers to this, but since I'm not even sure what to call it I'm not having much luck.
Given a set of rectangles of different sizes and aspect ratios, I want to be able to arrange these so they nest together into a roughly rectangular region. Something like http://www.wordle.net/ (http://www.wordle.net), although wordle is nesting things around much more complex shapes. I'm happy with just rectangles.
I'm not looking for code here, just a rough idea of what strategy you might use to get something like this done. If there's a common solution for this, what the heck is this kind of problem usually called? Then I can pray to google.
Thanks!
Given a set of rectangles of different sizes and aspect ratios, I want to be able to arrange these so they nest together into a roughly rectangular region. Something like http://www.wordle.net/ (http://www.wordle.net), although wordle is nesting things around much more complex shapes. I'm happy with just rectangles.
I'm not looking for code here, just a rough idea of what strategy you might use to get something like this done. If there's a common solution for this, what the heck is this kind of problem usually called? Then I can pray to google.
Thanks!