Jump to content
  • Advertisement
Sign in to follow this  
Dirk Gregorius

Editing Bezier Splines while maintaining C1 Continuity

This topic is 1578 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

I have constructed a (cubic) Bezier spline from some input points by building a Catmull Rom spline first and then convert it to a Bezier spline. I want to manipulate the individual control vertices now, but maintain C1 continuity.


The best I came up with so far is this:

- If I manipulate a knot I can use the same strategy as used for Catmull Rom splines (e.g. compute the tangent and update also the incoming and outgoing vertex)

- If I manipulate an 'internal' control vertex I might just apply the equal and opposite translation to the corresponding vertex to keep them aligned.


I googled for spline/curve editing/manipulation, but couldn't find anything useful so I was wondering if anyone can point me into the right direction.




Share this post

Link to post
Share on other sites

To maintain C1 continuity between consecutive (cubic) Bézier splines you have to maintain the following equations:


P3(i-1) - P2(-1) = P1(i) - P0(i)

P3(i-1) = P0(i)


where the index in the parenthesis represents the index of the curve in the spline. The derivative/tangent at the beginning (end) of Bézier curve is in fact parallel to the edge between the first two (last two) control points. If the two curves have different degree you have to multiply each part of the equation with the degree of the corresponding curve.

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!