Builtin Library
README.md
geometry.following
Read a column of a closed run one place on: element i of the answer is element i + 1 of the column, and the last element reads the first. The next point round a ring, for each point of it.
Inputs
values(Column or Field). The values read, the elements of one closed run in order.count(Number). How many elements the run holds.
Outputs
values(Column). The column shifted back one place, wrapping at the end.
local ring = g.geometry.profile({ profile = g.curve.circle({ radius = 1, segments = 8 }) }).ring
local nextPoint = g.geometry.following({ values = ring, count = ring.count })