Estimation of tortuosity and reconstruction of geodesic paths in 3D