A Fast Algorithm of the Shortest Path Ray Tracing