I have this arrangement of blocks that I am trying to create a pattern from; with the condition that the gap between each block increases the further along it gets.
My professor created an algorithm using 1 block that demonstrates the effect I’m trying to get with the pattern, but this does not work when I plug in multiple breps.
I made a kind of solution, by orienting the blocks to a new place.
To find those new points I scale all blocks and only use the centre of the block +
orient original block to new plane.
(PS By setting the plane of the scale NU you can change direction)
You might have to think about those gaps. What to do if four blocks (blue) have the same size as one yellow block. The number of gaps is not equal, so you have to decide, to accept an irregular outline (as I did) or find another way to fine tune every gap. (what could be done, by not using scaling, but using the advice of your teacher (in an edited way) to move all centers, + orient)
The effect looks like an increased gap the further you move in X. Is this what you want (for all boxes) or are you trying to increase the gaps between them in all directions (expansion)?
It is similar to @Eef_Weenink solution. The idea is to move a geometry with a vector proportional to the distance to a point. Vector that can be 3d, 2d or 1d.