i
i
i
i
i
i
i
i
13.1. Parametric Cur ves 581
Now that we have the basics in place on how B´ezier curves work, we can
take a look at a more mathematical description of the same curves.
B
´
ezier Curves Using Berns tein Polynomials
As seen in Equation 13.2, the quadratic B´ezier curve could be described
using an algebraic formula. It turns out that every B´ezier curve can be
described with such an algebraic formula, which means that you do not need
to do the repeated interpolation. This is shown below in Equation 13.4,
which yields the same curve as described by Equation 13.3. This description
of the B´ezier curve is called the Bernstein form:
p(t)=
n
i=0
B
n
i
(t)p
i
. (13.4)
This function contains the Bernstein polynomials,
2
B
n
i
(t)=
n
i
t
i
(1 − t)
n−i
=
n!
i!(n − i)!
t
i
(1 − t)
n−i
. (13.5)
The first term, the binomial coefficient, in this equation is defined in Equa-
tion 1.5 in Chapter 1. Two basic properties of the Bernstein polynomial
are the following:
B
n
i
(t) ∈ [0, 1], when t ∈ [0, 1],
n
i=0
B
n
i
(t)=1.
(13.6)
The first formula means that the Bernstein polynomials are in the in-
terval between 0 to 1 when t also is from 0 to 1. The second formula means
that all the Bernstein polynomial terms in Equation 13.4 sum to one for
all different degrees of the curve (this can be seen in Figure 13.6). Loosely
speaking, this means that the curve will stay “close” to the control points,
p
i
. In fact, the entire B´ezier curve will be located in the convex hull (see
Section A.5.3) of the control points, which follows from Equations 13.4
and 13.6. This is a useful property when computing a bounding area or
volume for the curve. See Figure 13.4 for an example.
In Figure 13.6 the Bernstein polynomials for n =1,n =2,andn =3
are shown. These are also called blending functions. The case when n =1
(linear interpolation) is illustrative, in the sense that it shows the curves
y =1− t and y = t. This implies that when t =0,thenp(0) = p
0
,and
when t increases, the blending weight for p
0
decreases, while the blending
weight for p
1
increases by the same amount, keeping the sum of the weights
2
The Bernstein polynomials are sometimes called B´ezier basis functions.