THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/09/2012 at 02:21, xxxxxxxx wrote:
Hi everyone! I'm currently looking into ways of finding the point on a polygonal mesh that is closest to an arbitrary point in space.
In Maya there is a pointOnSurface command in the Python SDK and in Cinema we have the Shrinkwrap Deformer and Constraints (set to clamp and surface), that must use similar algorithms internally.
Contrary to what I thought at first the problem is far from trivial and so far I haven't been able to find a sure fire way to find that point.
A method like this could be very useful for particles interacting with surfaces, so if anybody here knows more about the subject than I do and likes to share, it would be of great help.