Hello everyone. I am fairly new to GH and I am trying to figure out a way of automatically populating a parametric roof I created with PV panels.
I have more or less the idea of what I have to do, but not the knowledge of how to implement it. So I have a roof (surface) with some kind of obstacle (any geometry I add on the surface - HVAC or exhausters) and what I would like to happen is that the script automatically creates the biggest rectangle possible on the roof avoiding the obstacle(s), and within that rectangle, add the maximum number of smaller geometries representing the PV panels.
That’s more or less a diagram of what I would like to happen:
And this is the GH file of what I have so far:
Grasshopper_Roof.gh (9.6 KB)
If it’s too much work I don’t need a final solution but some direction on how to proceed would be greatly appreciated!