Curve on surface with a constant inclination

Here’s a thread on solving this type of problem iteratively.

Essentially it’s keeping a list of points each at constant distance from the next, and with the same height increase, then pulling them onto the surface.
It’s quite fun for making zig-zagging mountain paths