Three-dimensional ray tracing and the method of principal curvature for geometric spreading