I've got a triangular mesh description of a surface. I also have a point P that lies outside the surface. How can I find the point on the surface that is closest to P?
I know how to find the closest vertex, but the closest point is probably between vertices. I also thought about doing a ray trace, but that won't always work since I don't know the direction.