How to find the position of a point with respect to BSpline curve

Hi ,

I am having a Bspline curve and a point coordinate .
My requirement is to find where the point lies like whether the point is on the Bspline curve or Inside the curve curvature or Outside the curve curvature.

Looking forward for replies.

Thanks in advance.

Regards
Senthil

David Egan's picture

to find whether a point lies on the curve simply project it onto the curve and measure the distance from the original point and its projected point on the curve. If the distance is zero or less than a small tolerance it lies on or very close to the curve. Look at GeomAPI_ProjectPointOnCurve