From: Pinpress on
Hi,

I was wondering if anyone know if there's an efficient way of finding the point projection onto a given 3D surface mesh. The projection point can either be within a surface patch, or on the edge, or be the closest node relative to the given point, depending on where the point is relative to the mesh. The mesh itself most of the time I am dealing with triangular mesh, but could also be a quadrilateral mesh. Of course, I think if a code works for triangular mesh, then I can divide the each quadrilateral facet into two triangular facet to make it like a triangular mesh.

Any hint would be appreciated.