I purged a lot of extraneous and distracting parts of this GH file, to understand it better and make some changes. The reference ‘Simple Brep’ is internalized so no need for Rhino file.
bricks_2024Jan5b.gh (20.1 KB)
P.S. You can adjust the ‘Min’ slider (white group) to increase density. Better yet, make ‘Min’ slider 0 to 1 and multiply it by the computed max value. When ‘Min’ is 1, all rows have the max number of bricks.
bricks_2024Jan5c.gh (14.7 KB)

