Professional Documents
Culture Documents
They are contained in the convex hull of their defining control points.
The degree of the polynomial defining the curve segment is one less that the number of defining polygon point. Therefore,
for 4 control points, the degree of the polynomial is 3, i.e. cubic polynomial.
A Bezier curve generally follows the shape of the defining polygon. The first and last points of the curve are coincident with
the first and last points of the defining polygon.
The direction of the tangent vector at the end points is same as that of the vector determined by first and last segments.
The convex hull property for a Bezier curve ensures that the polynomial smoothly follows the control points.
No straight line intersects a Bezier curve more times than it intersects its control polygon.
Bezier curves exhibit global control means moving a control point alters the shape of the whole curve.
The order of the polynomial defining the curve segment is equal to the total number of control points.
1. Computer Graphics-
Bezier curves are widely used in computer graphics to model smooth curves.
The curve is completely contained in the convex hull of its control points.
So, the points can be graphically displayed & used to manipulate the curve intuitively.
2. Animation-
Bezier curves are used to outline movement in animation applications such as Adobe Flash.
Users outline the wanted path in Bezier curves.
The application creates the needed frames for the object to move along the path.
For 3D animation, Bezier curves are often used to define 3D paths as well as 2D curves.
3. Fonts-
True type fonts use composite Bezier curves composed of quadratic bezier curves.
Modern imaging systems like postscript, asymptote etc. use composite bezier curves composed of
cubic Bezier curves for drawing curved shapes.
Bézier curve is a curve expressed in the Bernstein basis:
The Bezier curve can be represented mathematically as:
𝑃 𝑡 = σ𝑛𝑖=0 𝑃𝑖 𝑏𝑖,𝑛 𝑡 where 0≤ t ≤1
Where, t is any parameter where 0 <= t <= 1 (i.e. influence of the curve point depends on t)
P(t) = Any point lying on the bezier curve
i = ith control point of the bezier curve
n = polynomial degree of the curve
𝑏𝑖,𝑛 𝑡 = Bernstein basis polynomials (Blending function) =>
General:
“n choose v” = n! / i!(n-i)!
n
n
P (t ) (1 t ) t Pi , 0 t 1
n i i
i 0 i
Given a Bezier curve with 4 control points-
P0[1 0] , P1[3 3] , P2[6 3] , P3[8 1]
Determine any 5 points lying on the curve. Also, draw a rough sketch of the curve.
- The parametric equation for a cubic Bezier curve is-
P(t) = P0(1-t)3 + P1(3t)(1-t)2 + P2(3t2)(1-t) + P3t3
Substituting the control points P0, P1, P2 and P3, we get:
P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3
To get 5 points lying on the curve, assume any 5 values of t lying in the range 0 <= t <= 1.
Let 5 values of t are 0, 0.2, 0.5, 0.7, 1
At t are 0, 0.2, 0.5, 0.7, 1 Substitute in P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3
For t = 0:
P(0) = [1 0](1-0)3 + [3 3]3(0)(1-t)2 + [6 3]3(0)2(1-0) + [8 1](0)3
P(0) = [1 0] + 0 + 0 + 0
P(0) = [1 0]
For t = 0.2:
P(0.2) = [1 0](1-0.2)3 + [3 3]3(0.2)(1-0.2)2 + [6 3]3(0.2)2(1-0.2) + [8 1](0.2)3
P(0.2) = [1 0](0.8)3 + [3 3]3(0.2)(0.8)2 + [6 3]3(0.2)2(0.8) + [8 1](0.2)3
P(0.2) = [1 0] x 0.512 + [3 3] * 3 * 0.2 * 0.64 + [6 3] 3 0.04 0.8 + [8 1] * 0.008
P(0.2) = [1 0] x 0.512 + [3 3] * 0.384 + [6 3] * 0.096 + [8 1] * 0.008
P(0.2) = [0.512 0] + [1.152 1.152] + [0.576 0.288] + [0.064 0.008]
P(0.2) = [2.304 1.448]
At t are 0, 0.2, 0.5, 0.7, 1 Substitute in P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3
For t = 0.5: