Fitting a b-spline curve

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

Fitting a b-spline curve

Postby Joel Heinz » Mon Aug 19, 2019 2:23 am

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: 38
Joined: Mon Apr 04, 2016 4:55 am

Re: Fitting a b-spline curve

Postby Prashant Kande » Thu Aug 22, 2019 5:03 am

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

Postby Joel Heinz » Fri Aug 23, 2019 12:35 am

Thanks, Parashant
It makes sense


Return to “General Issues”

Who is online

Users browsing this forum: No registered users and 5 guests