On 23/06/2013 at 23:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14 Stud
Platform: Mac OSX ;
Language(s) : C++ ;
---------
I need to calculate the distance from a point to the closest point on a spline. This process must be performed repeatedly so I was wondering about the SplineHelper which, after initial setup, is quite quick I understand.
Does anyone have any suggestions how to go about this? I could iterate along the spline checking the distance to my original point but that seems somewhat inefficient as a technique. The answer needs to be reasonably accurate however some margin of error is acceptable for the planned usage.
I suspect that there are methods in the SDK which would help. I'm having trouble knowing where to look...