Most efficient way to fill out an area with 4 predefined rectangles


I am trying to fill out an areawith 4 different types of rectangle using grasshopper. I want the most efficient organization within this area. the four different dimensions of the rectangles are are (880mmx1300), (880mmx985mm), (730mmx1300mm), (730mmx1300mm). Note that the area has 2 holes in it.

I have been playing around with it but have not solved this yet. Any ideas?

example.3dm (48.6 KB)


Hi @serabouch
Please do not make multiple posts for the same question - splitting up the discussion can duplicate the effort of people who help out and makes it harder to follow.
I suggest putting all the detail about your question into the one thread Fitting rectangles into larger area