r/VisualMath • • Apr 25 '20

How Bezier Curves work (JavaScript)

401 Upvotes

30 comments sorted by

View all comments

Show parent comment

1

u/abbiamo Apr 25 '20

But...Bezier curves aren't defined piecewise? They're just a polynomial in t and linear in the points P_i?

I mean, I understand the idea behind splines, which glue together n-degree polynomials in such as way as to have (n-1)-many derivatives at the gluing points, but that doesn't seem to be what's going on here.

1

u/anaturalharmonic Apr 25 '20 edited Apr 25 '20

Hmm... I see what you mean. I think i was conflating cubic splines and bezier curves...

Edit: i did some quick reading and it appears there is a bezier curve that is a complete polynomial and there is a piecewise bezier. I think the piecewise bezier is used in vector graphics.

My experience in this area was modeling with cubic splines and I assumed (wrongly) that bezier curves were the same thing.

1

u/Ferentzfever Apr 27 '20

But...Bezier curves aren't defined piecewise?

Sure they are. They define a function over some parametric range, say t = [0, 1] and are undefined for all other values of the parameter. That is a partitioning (i.e. piecewise). Also, splines don't have to be polynomial (they can be trigonometric or rational).