Tutorial: Mesh Closest Point Algorithm
This is a tutorial I made recently on computing the closest point on a mesh from a query point. The algorithm uses an r-tree query to look for relevant faces and then computes the closest point on triangles returned from the query. It is implemented in C++ and the results are visualized using Grasshopper (via PInvoke).
The source code can be found here: https://github.com/ranjeethmahankali/GeomAlgoLib