Grid Distortion

Namaste all,

I was going through this tutorial in youtube in grid distortion :


I am able to understand the GH definition till the point where we create the attractor point,
but don’t understand the logic from where we start to deconstruct the points, kindly help

Thanks.
GRID DISTORTION.gh (15.4 KB)

The grid is in the XZ plane and all points have Y=0, which is never changed in this model. The attractor point “repels” all the grid points in both X and Z directions (in blue, below). So by deconstructing the grid points and replacing the distorted X values with the original X for each point, distortion is confined to only the Z direction (vertical), not the horizontal (X). All the yellow points remain vertically aligned with the original grid.

1 Like