Chaikin's algorithm is a method used in computer graphics to create smooth curves from a given set of points or a polyline. The algorithm works by making new points on the line which form a smoother curve.
Chaikin's algorithm is quite simple and produces the results based on the number of iterations performed.
Draw a line to represent the polygon (open or closed) to encapsulate the curve.
Generate the new sequence of control points at a ratio of
The above equations represent the control points on a line segment as shown below.
Connect the points so that the second point of a segment connects to the first control point of the next segment.
Repeat the process to get a smoother curve.
The matrix representation of Chaikin's algorithm is given below.
The above representation shows the new control points (
The left column matrix represents the new points
The matrix on the right side is a constant coefficient matrix used in Chaikin's algorithm. It scales and combines adjacent control points to generate new points on a smoother curve.
The matrix is multiplied by
It ensures that the new points
It helps to control the level of smoothness in the resulting curve.
Note: The smaller the scaling factor, the smoother the curve will be, and vice versa.
Free Resources