Parametric Curves
- A parametric curve is described as a function of a parameter t.
- A line is an instance of a curve.
Bézier Curves
- A ray define by the star point and the direction vector is represented in a parametric equation.
- Consider a line segment between two end points, and . Vector corresponds to the direction vector line segment can be represented as:
- A line segment connecting two end points is represented as a linear interpolation of the points.
- The linear segment may be considered as being divided into two part by , and the weight for an end point is proportional to the length of the part "on the opposite side", i.e., the weights for and are and , respectively.
- De Casteljau algorithm = recursive linear interpolations for defining a curve. The quadratic Bézier curve interpolates the end points, and , and is pulled toward , but does not interpolate it, but does not interpolate it.
- The cubic Bézier curve interpolates the end points, and , and is pulled toward and .
- The De Casteljau algorithm can be applied for a higher-degree Bézier curve. For example, a quartic (degree - 4) Bézier curve can be constructed using five points.
-
Such higher-degree curves often reveal undesired wiggles. Worse still, they to not bring significant advantages. In contrast, quadratic curves have little flexibility. Therefore, cubic Bézier curves are most popularly used in the graphics field.
-
The points are called controled points. A degree-n curve requires (n+1) control points. The coefficients associated with control point are polynomials of parameter t, and are named Bernstein polynomials.
- Different orders of the control points produce different curves.
- The typical method to display a Bézier curve is to approximate it using a series of line segments. This process is often called tessellation. It evaluates the curve at a fixed set of parameter values, and joins the evaluated points with straight lines.