Hello,
I’m still very very new to Grasshopper. I’m trying to do a ceiling design but I need assistance in figuring out how to distribute these panels (panels are set lengths of 96", 72", and 48", by 88" wide. I’m trying to offset the points within these set distances and be able to modify the placement of these panels using a “randomizing” function.
I drew a quick sketch in a screenshot to represent an example of the type of placement I am aiming for.
Hi,
Since your panels all seem to be the same height, you could distribute them row-wise, where each row would have the same height as the panels. The grid division isn’t necessary for this.
I would simply start at the first row and place a reference point. The latter is where the first, random panel from your module pool gets placed by for instance its lower or upper left corner.
Then you move the reference point “forward” by the panel width to place the next random panel.
Once, you arrive at the end of the current row, you move the reference point to the row below and start all over.
One thing to think about is how you want to treat situations where panels need to fill the beginning or end of a row, but aren’t the right size to end it precisely. Do you cut the panel? Do you have custom filler panels? Etc.
If on the other hand your panels aren’t the same height or width, you possibly need a packing algorithm to solve this, in which case things would get a lot more complex.
There is also a another possibility. You could use LunchBox (the plug-in) to produce a staggered quad grid like in your sketch, and construct the panels in place. You probably can’t define fixed size panels easily though. I can’t remember what the LunchBox component was called.