I am trying to connect 2 points on two surfaces. I started by drawing a grid on the surfaces and i managed to find the shortest curve between these two points that follows the grid. However how do i find all the possible shortest curves between these two points.

The component i am using is shortest walk, and this only gives me one result.