Hi!
I am trying to create a randomly stacked wall with the following rules.
- The bottom of each rectangle must overlap with at least one rectangle below it by at least 1/4 of the bottom rectangle
*There should be at least a 1" horizontal gap between rectangles - There are 10 rectangle types. 5 of them have various Lengths & widths but are all 1.5 inches high. The 5 other ones have the same Length & width dimensions as the first but are all 3" tall.
- Rectangles should not overlap both vertically & horizontally.
So far I have managed to create the look and feel of what I’m aiming to achieve by using the random reduce component. However since the random reduce component doesn’t allow for controlled reduction the result is many floating and intersecting rectangles.
Please see attached images of what I’m aiming for as well as what I’ve achieved so far.
I’m also attaching the grasshopper script for reference.
I did search through the forum for similar topics & found some discussion relating to packing algorithms as well as mass addition / recursive scripts, though I haven’t found anything concrete.
As such any and all help would be greatly appreciated!!
Random Stacked Rectangles.gh (169.3 KB)