Sign in to follow this  
dslprog

Bezier curves

Recommended Posts

dslprog    122
I need to draw a Bezier curve with 4 control points, I have 2 fixed control points, the first one and the last one. I need to to calculate the second and third control point so the curve pass (exactly or approximately) through certain points. How can I do this? Thanks.

Share this post


Link to post
Share on other sites
Dmytry    1151
hmm, maybe you can just use other spline, spline that passes control points exactly(so called interpolating spline)?
Seems that you just want to make cubic interpolation (aka cubic spline (check Mathworld site)) by specifying parameters to Besier curve.

As about solution for Besier curve... it's long, and i think there's no simpler way at all. You need to make cubic spline that passes control points exactly or least-square approximates points if there's too many points for given degree, then you have to derive formule for additional control points for Besier curve so Besier curve will have same polynomial coefficients as that interpolating spline.(and will produce exactly same results as cubic spline)
(your Besier is also a cubic polynomial)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this