Bzier curves
BEZIER CURVES
The Bzier curve associated with the set P is defined by: n n Pi Bi (t) i=0
n where B i (t) represent the Bernstein polynomials, which are given by: n n B i (t) = (1 t) ni ti i i = 0, . . . , n
Bzier curves
Control polygon
6 4
Control points
6 4
-2 1 2 3 4 5 6 7
-2 1 2 3 4 5 6 7
Bzier curve
7 control points
n=6
n
-2 1 2 3 4 5 6 7
PiB in(t)
i=0
Bernstein polynomials
Given by:
n Bi (t)
Bin(0)= Bin(1)=0 i=1,...,n-1 Positivity: Bin(t) 0 in [0,1] B0n(0)= Bnn(1)=1 Simmetry: Bin(t) = Bn-in(1-t) Bin(1)= Bin(0)=0
n i=0 n Bi (t)=1
Normalizing property:
Maxima: Bin(t) attains exactly one maximum on the interval [0,1], at t=i /n.
4
2
2
0
-2 1 2 3 4 5 6 7
-2 1 2 3 4 5 6 7
Control polygon
The Bzier curve generally follows the shape of the control polygon, which consists of the segments joining the control points.
3D curve
2D curve
Variation disminishing property. No straight line intersects a Bzier curve more times than it intersects its control polygon.
For a three-dimensional Bzier curve, replaces the words straight line with the word plane.
t=0.4
Subdivided curve: 7 control points
4
t=0.4
t=0.4
Bzier curves
Degree raising of the Bzier curve of degree n=3 to degree n=11
2001 Andrs Iglesias. See: http://personales.unican.es/iglesias
4 3.5 3 2.5 2 1.5 1 0.5 2 4 3.5 3 2.5 2 1.5 1 0.5 2 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6 4 3.5 3 2.5 2 1.5 1 0.5 2 3 4 5 6
R(t) =
i=0 n
wi
weights
i=0
Farin, G.: Curves and Surfaces for CAGD, Academic Press, 3rd. Edition, 1993 (Chapters 14 and 15). Hoschek, J. and Lasser, D.: Fundamentals of CAGD, A.K. Peters, 1993 (Chapter 4). Anand, V.: Computer Graphics and Geometric Modeling for Engineers, John Wiley & Sons, 1993 (Chapter 10).
wi > 1 -> the curve approximates to Pi wi < 1 -> the curve moves away from Pi 4 1 3
3
1 1
2 3 4 5 6
1 1
2 3 4 5 6
0.3
0.1
1 1
2 3 4 5 6
1 1
2 3 4 5 6
1 1 1 1 1 1
Moving a control point: a nonrational Bzier curve with a change in one control point. 1 1 1 1 Original curve Final curve 4 1 1 1 1
Let c(t) be a point on a conic. Then, there exist numbers w0, w1 and w2 and two-dimensional points P0, P1 and P2 such that:
w0 P0 B02(t) +w1 P1 B12(t) +w2 P2 B22(t) c(t) = w0 B02(t) +w1 B12(t) +w2 B22(t)
If we take w0 = w2 =1 and we define s = s = 1 gives a parabolic arc 2 s < 1 gives an elliptic arc 2 s > 1 gives a hyperbolic arc 2
w1 : 1+ w1 w1 =2
hyperbola
w1 =1 w1 = 1
3
parabola elipse
1/2 (1, 3)
1 (3/2, 3/2)
2001 Andrs Iglesias. See: http://personales.unican.es/iglesias
0.5
(1/2, 3/2)
0.75 0.5 0.25
(0,0) 1
(1,0)
1.5
(2,0) 1
1/2
1/2
Bzier surfaces
BEZIER SURFACES
Let P={{P00,P01,...,P0n}, {P10,P11,...,P1n}, ........................, {Pm0,Pm1,...,Pmn}} be a set of points Pij IR (i=0,1,...,m ; j=0,1,...n)
The Bzier surface associated with the set P is defined by:
m n n Pij Bim (u)Bj (v) i=0 j=0
x 0 1 2 3 4 5
y 0 0 0 0 0 0
z 1 2 3 3 2 1
x 0 1 2 3 4 5
y 1 1 1 1 1 1
z 2 3 4 4 3 2
x 0 1 2 3 4 5
y 2 2 2 2 2 2
z 3 4 5 5 4 3
x 0 1 2 3 4 5
y 3 3 3 3 3 3
z 3 4 5 5 4 3
x 0 1 2 3 4 5
y 4 4 4 4 4 4
z 2 3 4 4 3 2
x 0 1 2 3 4 5
y 5 5 5 5 5 5
z 1 2 3 3 2 1
S(u, v) =
m n where B i (u and Bj (v) represent ) the Bernstein polynomials of degrees m and n and in the variables u and v, respectively.
Bzier surfaces
n m
Note that along the isoparametric lines u=u0 and v=v0, the surface reduces to Bzier curves:
S(u0 , v) =
j=0
n bj Bj (v)
S(u, v0 ) =
i=0
m ci Bi (u)
bj =
i=0
Pij Bim(u0)
Z
ci =
j=0
n Pij Bj (v0)
DOMAIN
3D space
Y S(u,v)
Bzier surfaces
m n
is obtained from a control point and the product of two univariate Bernstein polynomials. Each product makes up a basis function of the surface. For instance:
1
Function B2
2(u).
B1
3(v):
0 0.25 0.5
B22(u)
0.75 1
0.2
0.4
0.6
0.8
B22(u)
B13(v)
0.4
0.3
B1
0.25 0
3(v)
0.5
0 1 0.75
0.2
0.1
0.2
0.4
0.6
0.8
Bzier surfaces
BLENDING SURFACES
If a single surface does not approximate enough a given set of points, we may use several patches joined together.
Two Bzier patches F0 and F2 are connected with C1-continuity by using a Bzier F1 patch.
F0
F1
F2
BLENDING
2001 Andrs Iglesias. See: http://personales.unican.es/iglesias
wij = 1
3 4 3
S(u, v) =
i=0 j=0 m n
i=0 j=0
Example:
0.5 0
20 1.5 1 1 2
20 1.5 1 1 2
3 4
0
0.5
0.2
3 4 3
0.4 1 1
0 1
7 1 1
0
1 0.4 1 1 4 1
1 7 1 1 0.2 1