Place Maximum Rectangles with Certain Dimensions on the Host Surface

Hi all,

I’ve been trying to place rectangles on a surface without overlapping each other and going out of the surface boundary. The surface I have, I have extracted horizontal lines to use points on it as the start point for rectangles but I have to cull the lowest lines (lowest z-values) which I did for XZ plane, however, for YZ plane, one line with the lowest z value still appears. This is one of the issues I am facing. And the other one is my rectangles are overlapping. I am using Galapagos to maximize the area of rectangles placed. However, it is taking forever. Could you please guide me on how can I cull all the bottom curves in the YZ plane and make the optimization faster or an alternative method to perform this function?

Thank you so much!!!

Maximize Area.gh (40.9 KB)

(the rectangles are crossing the surface boundary on right side, that’s not a problem, I will extract that boundary and trim the intersecting rectangles)

Hi,


I understand that you have some problems with overlapped rectangles, but still, I’m not clear what you’re expecting to achieve. If possible, upload some sketches of what result you’re expecting.

Cheers,
BVR

Hi,
Thank you so much for your response.

I want to maximize the area of rectangles within the host surfaces. Let’s say the rectangle’s width should be from 1.5 m to 2.0 m and height should be 2.0 to 3.0 m. So the rectangles should adopt the respective dimensions from the aforementioned limit. I am showing the sketch. it should be something like this. ( I just represented the top two rows, I intend to place rectangles on all the surfaces and also, the no. of rectangles does not matter, if only one rectangles fits or two or three on one surface). I also see that Galapagos can either maximize or minimize the function. Is it possible I can do both for example I want to minimize the no. of rectangles and maximize the covered area by rectangles?

Thanks again :slight_smile:

I have tried using Skindesigner plugin to place panels on the surface and optimize it but it is really slow and taking very long because panels are created as Rhino geometry so that’s why it would be great if I could get some GH method to create optimized rectangles on the surface.

image