Page 1 of 1

Fitting a b-spline curve

Posted: Mon Aug 19, 2019 2:23 am
by Joel Heinz
Hi All,

I am using IBSplineCurve_DG.Interpolate() to fit a set of 3D points into a bspline curve and the result looks pretty good. I see that the number of poles of the resulting bspline curve is always nearly equal to the number of the points. I was actually expecting a fit kind of functionality where for 25-30 input points I would get like 5 poles. Am I using wrong interface/function?

Any suggestions will be greatly appreciated. Thank You.

Joel

Re: Fitting a b-spline curve

Posted: Thu Aug 22, 2019 5:03 am
by Prashant Kande
Hi Joel
Sorry for the later answer.

You just need to use the InitFromPoints*() methods instead. This is the difference. Interpolate means passing through the points. InitFromPoints*() approximates presumably some redundant set with smaller number of poles using something like minimal squares algorithm.

Regards

Re: Fitting a b-spline curve

Posted: Fri Aug 23, 2019 12:35 am
by Joel Heinz
Thanks, Parashant
It makes sense