erich666 / GraphicsGems

Code for the "Graphics Gems" book series
Other
1.39k stars 265 forks source link

How to fit a cubic spline curve to a set of digitized points ? #29

Closed 914805218 closed 6 years ago

914805218 commented 6 years ago

thanks a lot

LysanderGG commented 6 years ago

I don't think this is the place for questions like this. You could find answers in the following links:

https://stackoverflow.com/questions/6299019/how-can-i-fit-a-b%C3%A9zier-curve-to-a-set-of-data

https://pomax.github.io/bezierinfo/#curvefitting

914805218 commented 6 years ago

thanks a lot but the links is the answer of [fit a bezier curve to a set of digitized points] i want fit a cubic spline curve, not a bezier curve

LysanderGG commented 6 years ago

Oh my bad! Maybe these could help: http://mathworld.wolfram.com/CubicSpline.html https://en.wikipedia.org/wiki/Spline_(mathematics)#Algorithm_for_computing_natural_cubic_splines

914805218 commented 6 years ago

thanks a lot