Reputation: 11
I am looking to randomly arrange a number of images (or for simplicity, rectangles) of given sizes on a canvas. I also want these images/rectangles to be a able to overlap (edges, sides etc) slightly i.e. I don't want any image covering up another image entirely. These images/rectangles are parallel to x and y axes. Also, I want the images to fit the canvas area completely with no unused white space.
I came across Bin Packing, Quadtree etc. But none of these allow for overlaps. Does anyone have an idea how this might be implemented? Or point me towards the right direction?
Thank you :)
Upvotes: 1
Views: 826
Reputation: 56
Assuming the conditions specified:
We can use Bin Packing or quadtree algorithms (or whatever), but first you want to manipulate your data set.
Essentially, decide the overlap of a given image before the set is arranged.
I can think of two limitations:
Upvotes: 2