Click two points on the surface to draw a geodesic.
Geodesics are locally length-minimizing curves. On a sphere: great circles. On a torus: wrap-around curves depending on winding numbers. On the hyperbolic plane: circular arcs orthogonal to the boundary.