Fitting a b-spline curve

Technical discussions
Post Reply
Joel Heinz
Posts: 2
Joined: Mon Aug 19, 2019 2:11 am

Fitting a b-spline curve

Post 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

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Fitting a b-spline curve

Post 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

Joel Heinz
Posts: 2
Joined: Mon Aug 19, 2019 2:11 am

Re: Fitting a b-spline curve

Post by Joel Heinz »

Thanks, Parashant
It makes sense

Post Reply