Given n+1 points p0, p1, p2, ... and pn in space, the control points, the Bézier curve defined by these control points is
where the coefficients, the Bézier coefficients, are defined as follows:
Therefore, the point that corresponds to u on the Bézier curve is the "weighted" average of all control points, where the weights are the coefficients Bn,i(u). The line segments p0p1, p1p2, ..., pn-1pn, called legs, joining in this order form a control polyline. Many authors prefer to call this control polyline as control polygon. Functions Bn,i(u), 0 <= i <= n, are usually called the Bézier basis functions.
Note that the domain of u is [0,1]. As a result, all coefficients are non-negative. In the above, since u and i can both be zero and so do 1 - u and n - i, we adopt the convention that 00 is 1. The following shows a Bézier curve defined by 11 control points, where the blue dot is a point on the curve with u=0.4. As you can see from the figure, the curve more or less follows the polyline.
The following properties of a Bézier curve are important:
In the above left, we have a Bézier curve defined by five control points. Its five Bézier coefficients are functions in u as shown in the above right figure. The figures show u=0.5 and the five Bézier coefficients. Moreover, the vertical bar shows the way of partitioning 1 into five intervals and hence the name of partition of unity. Note that the color of a partition is identical to the color used to draw its corresponding Bézier coefficients.
Since all Bézier coefficients are in the range of 0 an 1 and sum to one, they can be considered as weights in the computation of weighted average. More precisely, we could say "to compute p(u), one takes the weight Bn,i(u) for control point pi and sum them together."
This property is important because we are guaranteed that the generated curve will be in an understood and computable region and will not go outside of it. In some sense, the constructed curve is quite predictable.
Take a look at the above figure. The yellow line intersects the curve 3 times and the polyline 7 times; the magenta line intersects the curve 5 times and the polyline 7 times; and the cyan line intersects the curve and its polyline twice. You could draw other straight lines to verify this property.
If the curve is a space curve, replacing "line" with "plane" will suffice. Special cases may occur; however, it will not be a difficult task to come up with a proper counting scheme that takes these special cases into consideration.
So, what is the meaning of this property? It tells us that the complexity (i.e., turning and twisting) of the curve is no more complex than the control polyline. Take a look at the above figure,the control polyline is more complex than the curve it defines.
Sometimes the domain of a Bézier curve is [a,b] rather than [0,1]. Thus, a change of variable is required. What we should do is simply converting a u in [a,b] to a new u in [0,1] and using this u in the Bézier coefficients. Converting u to [0,1] can be done as follows:
Plugging this u into the Bézier coefficients Bn,i(u) gives the following:
These new Bézier coefficients define a Bézier curve on the domain of [a,b]. We shall use this fact in later sections.
In summary, to define a Bézier curve of degree n, we need to choose n + 1 control points in space so that they roughly indicate the shape of the desired curve. Then, if it is not up to our expectation, we can move the control points around. As one or more control points are moved, the shape of the Bézier curve changes accordingly. But, the curve always lies in the convex hull defined by the control points (the convex hull property), and the shape of generated curve is less complex than the control polyline (variation diminishing property).