Valleys and Ridges curve to mesh displacement (How To)

Following a question from there

Here are 2 ways to displace mesh vertices with curves.

Lets say we have curves that represent Valley (blue) and ridges (red). In this example they are in 2D but it must work in 3D

For each vertex of the mesh it is possible to measure the closest distance from blue curves and minimum distance from red curve. Having these 2 values for each point, then transform that to a factor between 0 and 1. Then a Graph Mapper to change the shape.

If you want something a bit more smooth you can do that using Nautilus plugin, it is a bit more complex and

Domain Warp enable to make some displacement (in 3 axis or just 2)

making valley and ridges.gh (34.2 KB)

Really brother ,thank for the instructions, got understanding.