Professional Documents
Culture Documents
P0 3
I/C, Regalla Srinivasa Prakash
P3
Exercise:
n+1 = 4
n = 4-1 =3
(k-1) = degree = n = 3
This Bezier curve is of degree __________. Or cubic.
P1 P2
P0
P3
Ans: cubic 4
n • The functions Bi,n are the Bernstein
B0,n (u ) nC0u 0 (1 u ) n 0
n!
.1.(1 u ) n (1 u ) n P1 P2
(n 0)!0!
n! n.( n 1).(n 2)...1
B1,n (u ) nC1u1 (1 u ) n1 .u.(1 u ) n 1 .u.(1 u ) n1 n.u.(1 u ) n1
(n 1)!1! (n 1).(n 2)...1.(1)
n! n.( n 1) 2 u
B2,n (u ) nC2u 2 (1 u ) n2 .u 2 .(1 u ) n2 .u .(1 u ) n2
(n 2)!2! 2
...
n!
Bn,n (u ) nCnu n (1 u ) nn .u n u n
(n n)!n!
n.( n 1) 2
P0
P (u ) (1 u ) n Po n.u.(1 u ) n1 P1 .u .(1 u ) n2 P2 ... u n Pn 0 u 1 P3
2
BITS Pilani, Hyderabad Campus
Exercise:
Prove that the Bezier curve (a) interpolates the first and last
control points (P0 and Pn), and (b) its tangents vector at
its first control point P0 is along first control polygonal
segment and that at end point Pn is along the last control
polygonal segment.
n! r
P (u 0)
r
1r i
C (r , i ) Pi
n r ! i 0
n! r
P (u 1)
r
1i
C (r , i ) Pn i
n r ! i 0
= P0 * ( 1 - u )3 + P1 * 3 * u * ( 1 - u )2 + P2 * 3 * u2 * ( 1 - u ) + P3 * u3
= P0 * ( 1 - u )3 + P1 * 3 * u * ( 1 - u )2 + P2 * 3 * u2 * ( 1 - u ) + P3 * u3
1.2
0.8 B0
B1
0.6
B2
0.4 B3
0.2
0
I/C, Regalla Srinivasa Prakash 18
Exercise: Propose suitable control point and their order to generate the
following Bezier curves. Verify the curve shapes by plotting in Matlab.
19
I/C, Regalla Srinivasa Prakash
Exercise: Prove that the Bezier curve is
symmetric with respect to u and (1-u).
Solution:
• That is, reversing the direction of parametrization does
not change the curve shape. To check this property
substitute 1-u = v.
• The symmetry of the Bezier curve is due to the
symmetry (NOT equality) of the Bernstein basis, which
in turn is due to the property of the binomial functions:
C(n, i) = C(n, n-i)
• Which makes Bi,n(u) and Bn-i,n(u) to be symmetric when
plotted with respect to u.
Be careful, Bi,n(u) ≠ Bn-i,n(u), never, except at u=0.5.
Solution:
This can be obtained by setting dBi,n/du = 0
This means that each ith control point is most
influential on the shape of the curve at u=i/n,
where (n+1) are the total control points.
For example in a cubic Bezier curve defined by Po,
P1, P2 and P3, these points are most influential at
u=0, 1/3, 2/3 and 1.
Multiple
control
K=3 points
are
K=2 specified
K=1 here
By making the
last point co-
incide with the
first point
By adding additional
control point at the
first point
B
i 0
i ,n 1
This provides for
* invariance of Bezier curve (or invariance of the
relationship between the Bezier curve and its control
polygon) under affine transformations.
Bi ,n 0
This ensures that the Bezier curve lies
entirely in its convex hull.
Example – 3
Degree = ?
Example – 4
Degree = ?
• Step 2: Find the midpoints of the lines joining M01, M12 and
M12, M23. Call them M012, M123
• Step 3: Find the midpoint of the line joining M012, M123. Call it
M0123
• The curve with control points P0, M01, M012 and M0123 exactly
follows the original curve from the point with u=0 to the point
with u=0.5
• The curve with control points M0123 , M123 , M23 and P3 exactly
follows the original curve from the point with u=0.5 to the point
with u=1 39
Regalla Srinivasa Prakash
Sub-Dividing Bezier Curves
M12
P1 P2
M012 M0123
M123
M01
M23
P0
P3
M12
P1 P2
M23
t=0.25
M01
P0
P3
I/C, Regalla Srinivasa Prakash 43
Exercise:
Using de Castejau algorithm sub-
Division of Cubic Bezier curve for
various parameter values
P1 P2
P0
P3
I/C, Regalla Srinivasa Prakash 44
Bezier Curve
Exercise:
What is the main purpose of De Castejau Algorithm for Bezier curve?
Po (1 u ) P1u Po u P1 Po 0 u 1
Solution:
From the formula P(0) = P0 and P(1) = Pn.
Solution:
Solution:
Soution:
The degree of the curve is
one less than the number of
control points, so it is a
quadratic for 3 control
points. It will always be
symmetric for a symmetric
control point arrangement.
61
Courtesy: http://astronomy.swin.edu.au/~pbourke/curves/bezier/
What are the limitations of Bezier Curve?
Solution:
• When interpolation is required, Bezier curve can not provide that
feature.
• There is no local control, only global control is available
• When a large number of control points are to be modeled by a
single curve segment, Bezier curve is practically impossible
because the degree of the curve has to be very high, exactly one
less than the number of control points. Moreover, it will only be
local control over the entire portion the curve.
64
4/26/2021
Let us take Bezier curve.
n n
P * (u ) Pi Bi,n(u) (Pi d)Bi,n(u)
*
i 0 i 0
n n
Pi Bi,n(u) d Bi,n(u) Pi (u ) d
i 0 i 0
i 0 i 0
n n
Pi N i,k(u) d N i,k(u) Pi (u ) d
i 0 i 0
P5
P4 P1
straightline
P3
P3 P2