Professional Documents
Culture Documents
x2
x3
End Point
x0 x2
Start Point Point along end Tangent
n
P (u ) PB
i i ,n (u ),0 u 1 (10)
i 0
ere P(u) is any point on the curve and Pi is a control point. Bi,n are the Bernstein
ynomials. Thus, the Bezier curve has a Bernstein basis. The Bernstein polynomia
ves as the blending or basis function for the Bezier curve and given by
Bi ,n (u ) C (n, i )u i (1 u ) ni
n 1
P(u ) P0 (1 u ) n PC
1 ( n,1)u (1 u ) P2C (n, 2)u 2 (1 u ) n2 .... Pn1C (n, n 1)u n1 (1 u ) Pnu n ,0 u 1
B3,3 (u ) u 3
P (u ) P0 B0,3 (u ) PB
1 1,3 (u ) P2 B2,3 (u ) P3 B3,3 (u )
P(u ) (1 u )3 P0 3u (1 u ) 2 P1 3u 2 (1 u ) P2 u 3 P3
X(u)
Y(u)
Example
% Bezier curve for n=3.
u=0:.01:1;
x=[1 2 4 3];
y=[1 1 3 1];
px=(1-u).^3*x(1)+3*u.*(1-u).^2*x(2)+3*u.^2.*(1-
u)*x(3)+u.^3*x(4);
py=(1-u).^3*y(1)+3*u*(1-u).^2*y(2)+3*u.^2.*(1-
u)*y(3)+u.^3*y(4);
plot(x,y); hold
plot(px,py,'r');
axis([0 4.2 0 3.2]);
[ F ][G ] (1 u )3 3u (1 u ) 2 3u 2 (1 u ) u 3 [ P0 P1 P2 P3 ]T
1 3 3 1 P0
3 6 3 0 P
P(u ) [ F ][G ] [U ][ N ][G ] u 3 u 2 u 1 1
3 3 0 0 P2
1 0 0 0 P3
1 4 6 4 1 P0
4 12 12 4 0 P
1
P (u ) [ F ][G ] [U ][ N ][G ] u 4 u 3 u 2 u 1 6 12 6 0 0 P2
4 4 0 0 0 P3
1 0 0 0 0 P 4
B-Spline Curves
B spline curves
The B-Spline
Two Major Limitations of the Bezier
Curves
1. Dependence on the number of
defining
polygon vertices
Hence the degree of the basis
function is fixed by
this
To increase or decrease the order
we need to
increase or decrease the no. of
P(u ) (1 polygon
u )3 P0 3vertices
u (1 u ) 2 P1 3u 2 (1 u ) P2 u 3 P3
2. No local control only global
control
B-Spline
How it is like the bezier
Approximates control points
Possesses Convex Hull Property
How it differs
Degree of polynomial is for the most
part
independent of the control points
Local control over spline shape
Local contorl acheieved by defining
blending functions
over subintervals of the total range of
t
Stronger Convex Hull Property
More complex than Bezier
Generally non-globa
n
P (u ) PN
i i ,k (u ),0 u u max
i 0
k=degree
Can be 2 to the number of
control points
If k set to 1, then only a
plot of the control points
Bi is the input set of n+1 control
points
(polygon vertices)
Parameter t now depends on
how we
choose the other parameters (no
longer locked to 0-1)
N i,k blending functions
Polynomials of degree k-1at each
Maharishi Markandeshwar University
interval xi
Computer Aided Design and Manufacturing
B-Spline Basis Functions
(Knots, Knot Vector)
Let U be a set of m + 1 non-decreasing
numbers, u0 <= u2 <= u3 <= ... <= um. The ui's
are called knots,
The set U is the knot vector.
We use u0 = 0 and um = 1
frequently so that the domain is
the closed interval [0,1].
Two Important
Observation
4u for 0 u 0.25
N (u )
2(1 2u ) for 0.25 u 0.5
0 ,1
B-Spline
Curves
The point on the curve that corresponds to a knot ui, C(ui), is referred
to as aknot point.
The knot points divide a B-spline curve into curve segments, each
of which is defined on a knot span.