Sign in to follow this  
BeanDog

NURBS to Bezier curves

Recommended Posts

BeanDog    1065
My Google-fu is coming up short. I'm parsing a file format that has 2D NURBS splines in it, and I need a conversion to cubic bezier curves. Is there a well-known library of some kind that has an implementation, or is there a good description of the algorithm that anyone knows of?

Share this post


Link to post
Share on other sites
Pragma    395
Maybe you already know this, but it's impossible to convert nurbs to bezier splines exactly because nurbs are rational functions, and bezier splines are polynomials.

Probably the best thing to do would be to pick a set of points along the nurbs curve, and compute the position of the nurbs curve and its derivative (tangent vector) at those points. Then there is a unique cubic bezier spline fitting those points and their derivatives.

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