Entry and exit points in traditional ray-casting