Notifications
Clear all

[Closed] closest point on spline

is there a way to find the closed point on a spline to a given point? I thought the measureOffset function might work but on first try it was terribly inaccurate and it only returns a distance value anyway. I’m hoping that i don’t have to walk the curve and find my own point based off some accuracy threshold. Any suggestions?

2 Replies

pathParam = nearestPathParam theShape splineIndex thePoint3
closestPoint3OnSpline = pathInterp theShape splineIndex pathParam

( Shape Common Properties, Operators, and Methods – the methods and such are a bit scattered around the Help file )

damn i guess i missed that one. thanks!