Jump to content
  • Advertisement
Sign in to follow this  
BeanDog

NURBS to Bezier curves

This topic is 2808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!