I have a question about coding in Grasshopper. I’m looking for a simple and efficient way to multiply an object to fill a void, ensuring that the objects don’t overlap the edges or touch each other. The objects should be evenly spread both vertically and horizontally but placed in a random pattern.
I’ve previously mapped objects onto a surface, but never within a void, so I’m wondering if there’s a way to achieve this. I’ve attached a sketch showing how I imagine the cubes would fill the void.
I have been thinking, to set them out at random spacing inside a surface, there is the coding around. and it works ! but is there a way to assign them to be copied along the x and y axis at a set distance and then letting them cascade down at different height without touching one another. Would the setting them out into a grid have to be done before jumping onto coding?
not a complete solution but you can build on this further.
you can control the logic for populate3D to suit your needs by calculating the point spacing (so the objects dont collide)