I am trying to adapt a slope/terrain shape from a grid of boxes. To make it simple assume a grid of boxes like a chess board, when it is moved a slope/freeform surface its bottom level should touch the closest points. I can move it individually by moving the box but I need it to automatically detect levels.
One way could be dividing surface and getting points at higher vertical position in the region but how to make it to detect and choose that vertical level. Kind of like liquid adapting to shapes.slope adapt.gh (22.1 KB)
I have attached simple version where all boxes move in z direction but I need to move/lay just on top of underlying surface. Please help me in solving this.