Bézier curves serve as a primary tool to model smooth and scalable curves. These curves find their applications in diverse fields such as Computer-aided design (CAD), Computer-aided manufacturing (CAM), and graphic design.
A Bézier curve is a parametric curve used in two-dimensional graphic applications. The curve is defined by a set of at least two control points. The path followed by the bezier curve starts at the first control point and ends at the last control point, being controlled by the positions of intermediate control points.
De Casteljau's algorithm is a recursive method that constructs a Bézier curve using linear interpolation between the two control points.
To construct a Bézier curve with any number of control points:
Divide the control polygon into segments by computing the control points between the consecutive (two) control points.
Interpolate new points by finding control points between the previously calculated control points.
Continue this process until a single point remains; it lies on the Bézier curve.
Given below are the formulas to find the control points between two control points.
To find the control point between the two points
Here,
To interpolate a new point (
To interpolate a new point (
We can substitute the values of
Note: You can use the above equations to find other points on the Bézier curve, but the process becomes increasingly complex as more points are added, making it difficult to show the complete construction here.
The demonstration shows how to connect three points smoothly using quadratic Bézier curves.
Note: You can visit this link for a nice Bézier curve animation. You can modify the control points and see how the changes effect the curve.
Bézier curves have several important properties, some of which are explained below.
Affine invariance: Bézier curves are invariant under
Convex hull property: The Bézier curve lies within the
Variation diminishing property: The property states that Bézier curves are smoother than their control polygons. When a line intersects the curve, it will have either fewer or the same number of intersections with the curve compared to the control polygon.
Subdivision property: Bézier curves can be subdivided at any point into two separate Bézier curves without changing the overall shape of the curve.
Bézier curves are smooth curves used in computer graphics. They are defined by control points that determine their shape and smoothness. Such curves offer a simple and powerful way to create attractive curves for various applications.