ETOOBUSY 🚀 minimal blogging for the impatient
Bézier curves
TL;DR
Where I re-discover a useful source for information, and that contributions might get lost.
For reasons that will hopefully be clear in a few days, I’m taking (again) a look at Bézier curves. There’s an excellent resource about them online, namely A Primer on Bézier Curves.
But… wait a minute! I already knew this place from before, because… I actually contributed to it about five years ago (I still have an oline version of the old site). Alas, in the meantime it underwent some re-writing, and it seems that my old contribution got lost 🤔
The contribution was actually a minor one, but it was enough to tickle the not-so-little nit-picker in me at the time. In section Splitting curves using matrices there is:
[…] the new end point is a mixture that looks oddly similar to a Bernstein polynomial of degree two
and my point is that the new end point is a Bernstein polynomial.
The key in this insight is that z is actually the free variable in the parametric equations, which ranges in [0,1]. For this reason, (z−1) is better expressed as −(1−z), because it gives you an immediate view of what’s the real sign of the expression.
For this reason, then, the following expression:
z2⋅P3−2⋅z⋅(z−1)⋅P2+(z−1)2⋅P1is best put as:
(1−z)2⋅P1+2⋅(1−z)⋅z⋅P2+z2⋅P3which also reveals its… Bernstein nature.
So there you have it… I know (where to find info on) Bézier curves! (And now you do too).