//Logo Image

# Bezier curves

## 1.    Defining a Bezier curve

Bezier curve was developed by the French engineer Pierre Bezier (1910-1999) in 1962 for use in the design of Renault automobile bodies. Pierre Bezier then went on to develop the UNISURF CAD/CAM system. As shown in Figure 1, the Bezier curve is defined in terms of the locations of n+1 points. These points are called data or control points. They form the vertices of what is called the control or Bezier characteristic polygon.

Figure 2 shows cubic Bezier curves for various control points. In a Bezier curve, only the first and the last control points or vertices of the polygon actually lie on the curve. The curve is also always tangent to the first and last polygon segments. In addition, the curve shape tends to follow the polygon shape. These three observations should enable the user to sketch or predict the curve shape once its control points are given.

A closed Bezier curve can simply be generated by closing its characteristic polygon or choosing P0 and Pn to be coincident. Figure 2 also shows an example of closed curve.

Figure 1. Cubic Bezier curve

Figure 2. Cubic Bezier curves for various control points.

##### ◇Assignment 1

Construct Bezier curves similar to those in Figure 2 using your CAD software. Describe the procedure for constructing these curves.

## 2.    Parametric equations of the Bezier curve

In general, a Bezier curve section can be fitted to any number of control points. The number of control points to be approximated determines the degree of the Bezier curve. For n+1 control points, the Bezier curve is defined by the following polynomial of degree n:

(1)

where  is any point on the curve and  is a control point,  are the Bernstein polynomials. The Bernstein polynomial serves as the blending or basis function for the Bezier curve and is given by

(2)

where  is the binomial coefficient

(3)

Equation (1) can be expanded to give

(4)

From Equation (2) and (3), we can get the followings:

n = 0,

n = 1,

n = 2,

n = 3,

Therefore for n = 3,

.                        (5)

##### ◇Assignment 2

Derive Bezier curve equations similar to Equation (5) for n = 0, 1, 2. Explain what happens when n = 0, 1. Derive Bernstein polynomials for n = 4, and construct the corresponding Bezier curve equation.

##### ◇Assignment 3

Assume the coordinates of 4 control points, write a Matlab program to draw the corresponding control polygon. Use  to generate the intermediate points of the Bezier curve using Equation (5). Use straight lines to connect these points to generate the curve. Using proper transformation, create the front, top, side, and isometric views of the 3-dimensional curve and its control polygon. Show your Matlab program too.

From the discussion above, we can see that the major differences between the Bezier curve and the cubic spline curve are:

(1)  The shape of Bezier curve is controlled by its defining points only. First derivatives are not used in the curve development as in the case of the cubic spline. This allows the designer a much better feel for the relationship between input (points) and output (curve).

(2)  The order or the degree of Bezier curve is variable and is related to the number of points defining it; n+1 points defined and nth degree curve which permits higher-order continuity. This is not the case for cubic splines where the degree is always cubic for a spline segment.

(3)  The Bezier curve is smoother than the cubic spline because it has higher-order derivatives.

## 3.    Properties of the Bezier curves

A very useful property of a Bezier is that it always passes through the first and last control points. If we substitute u = 0 and 1 in Equation (4), the boundary conditions at the two end points are

(6)

The curve is tangent to the first and last segments of the characteristic polygon. From Equation (5), the first derivatives when there are 4 control points (n = 3) is given by

(7)

Therefore the tangent vectors at the starting and ending points are

(8)

(9)

Similarly, it can be shown that the second derivative at  is determined by , , and ; or, in general, the r-th derivative at an endpoint is determined by its r neighboring vertices.

##### ◇Assignment 4

Prove from Equation (4) that in general, the first derivatives at the starting and ending points are given by Equation (10) and (11), respectively:

(10)

(11)

where  and  define the first and last segments of the curve polygon.

Another useful property of the Bezier curve is that the curve is symmetric with respect to u and (1-u). This means that the sequence of control points defining the curve can be reversed without change of the curve shape; that is, reversing the direction of parametrization does not change the curve shape. This can be achieved by substituting  in Equation (4) and noticing that . This is a result of the fact that  and  are symmetric if they are plotted as functions of u.

The interpolation polynomial  has a maximum value of  occurring at  which can be obtained from the equation  This implies that each control point is most influential on the curve shape at u = i / n. For example, for a cubic Bezier curve, , , , and  are most influential when , and 1 respectively. Therefore, each control point is weighed by its blending function for each u value.

##### ◇Assignment 5

Derive the maximum values of these 4 functions , , , and , and the values of u at the maximum. Plot these 4 functions and check whether your derivation is correct.

The curve shape can be modified by either changing one or more vertices of its polygon or by keeping the polygon fixed and specifying multiple coincident points at a vertex, as shown in Figure 3. In Figure 3(a), the vertex  is pulled to the new position . In Figure 3(b),  is assigned a multiplicity k, that is, 2 or 3 control points are placed on the same position. The higher the multiplicity, the more the curve is pulled toward

Figure 3. Modifications of cubic Bezier curve.