This node setup is meant to generate routes for drops of water. It wraps curve lines on the surface with the geometry proximity node.
I would like each control point (except the first one) to inherit the previous point's X and Y position before the proximity is evaluated.
I tried to use both "field at index" and "transfer attribute" feeding them with index-1 but it's not working:
Also, if I try with a "sample curve" approach like this.
I would expect to get the same result as in the first picture, but it's not.