DCs: Repeating a Sub Component in a Triangle or Diamond pattern

I use this formula (2-direction repeating grid) quite a lot with the work I do to arrange wine bottles in racks:
https://help.sketchup.com/en/article/114548

and I came up with this one for repeating in 3 directions:

I’m struggling currently with getting bottles to populate a diamond- or triangle-shaped space (see picture). Can anyone think of a way to mathematically fill the space only with copies of a single bottle?

So 1. How bowling pins are counted, front to back in rows
and 2. a half grid, where each row contains one less than the one before it

I get that I could just turn a square grid on it’s side for the diamond, but to add some visual diversity I have it generate a random number of copies, which would need to start at the bottom and work their way up, for obvious reasons

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.