Snap code may be called with a NULL region, add check about this and assume ray_start is OK in this case!