I'm wondering if there's a script to draw a path around a volume given a slope (for instance 5.8% (= 3.3°)).
Manually, I can draw such a path, but I need to adapt reference point from time to time, like in real life with a theodolite.

Maybe, using 4 boolean operations with plane, one for each direction, and only keeping the vertices, then again, incrementing vertice position, then joining them together?
Hope it makes sense.
Do you know about an existing script? Or can you explain me how to deal with resulting vertices after a plane boolean op? Can I "snap to vertex" to prevent adding vertices in the process?
Thanks!
More details in https://blenderartists.org/t/least-cost-path-for-blender-terrains/1226571/3
EDIT: Here's a terrain with an empty for a village location. blend file
Find the path to the peak!