Professional Documents
Culture Documents
Computer Aided Analysis & Design: BITS Pilani
Computer Aided Analysis & Design: BITS Pilani
DESIGN
BITS Pilani Dr. Kurra Suresh
Pilani Campus
Hermite Cubic Spline Curve
Segment
Interpolation curve
– Geometric form
3
P (u ) Ci u i , 0 u 1
i 0
u parameter
Ci Polynomial(or algebraic) coefficein ts
[C ] Coefficien ts vector
BITS Pilani, Pilani Campus
Parametric Equation of
Hermite Cubic Spline Segment
The tangent vector to the curve at any point is
3
P (u ) Ci iu i 1 , 0 u 1
i 0
Consider the cubic spline curve segment wi th the two endpoints Po and P1.
Applyingthe boundary conditions , Po , Po at u 0 and P1 , P1 at u 1, giving :
Po Co
Po C1
P1 C3 C2 C1 Co
P1 3C3 2C2 C1
Solving the four equations simultaneously for the coefficien ts
Co Po
C1 Po
C2 3P1 P0 2Po P1
C3 2Po P1 Po P1
Substituting in the parametric equation and rearrangin g
P (u ) 2u 3 - 3u 2 1 Po - 2u 3 3u 2 P1 u 3 - 2u 2 u Po u 3 - u 2 P1
Po , P1 , Po and P1 are called as geometric coefficien ts.
BITS Pilani, Pilani Campus
Parametric Equation of
Hermite Cubic Spline Segment
P (u ) 2u 3 - 3u 2 1 Po - 2u 3 3u 2 P1 u 3 - 2u 2 u Po u 3 - u 2 P1
[V ] Po P1 Po P1 geometric coefficien t vector or boundary condition vector
F1 (u) 2u 3 - 3u 2 1
F2 (u) -2u 3u
3 2
F4 (u) u 3 - u 2
P(u) F1 (u)P0 F2 (u)P1 F3 (u)P0 F4 (u)P1
P (u) [U]T [M H ][V], 0 u 1
[M H ] Hermite matrix
2 2 1 1
3 3 2 1
Hermite matrix [ M H ]
0 0 1 0
1 0 0 0
Comparing P (u ) [U ]T [C ] and P (u ) [U ]T [ M H ][V ],
we obtain C [ M H ][V ]
0 0 0 1
1 1 1 1
M H
1
0 0 1 0
3 2 1 0
Similarly the tangent vector is written as
P (u ) 6u 2 6u Po 6u 2 6u P1 3u 2 4u 1 Po 3u 2 2u P1
[U ]T [ M H ]u [V ]
where
0 0 0 0
6 6 3 3
[M H ]
u
6 6 4 2
0 0 1 0
Lecture # 7
Bezier Curve
OBJECTIVES
Bezier Curves
n i
Bi ,n u C u 1 u
n i
i
where the binomial coefficien t
n n!
C or C (n, i )
i i!n i !
BITS Pilani, Pilani Campus
Bezier Curves
The functions Bi,n are the Bernstein polynomials of
degree (k-1)=n
We can write the complete form of Bezier curve while
observing that C(n,0)=C(n,n)=1
P(u ) Po (1 u ) n P1C (n,1)u (1 u ) n1 P2C (n,2)u 2 (1 u ) n2
... Pn1C (n, n 1)u n1 (1 u ) Pnu n 0 u 1
Special case, 3 control points
B(u) = P0 * ( 1 - u ) 2 + P1 * 2 * u ( 1 - u ) + P2 u2
B(u) = P0 * ( 1 - u )3 + P1 * 3 * u * ( 1 - u )2 + P2 * 3 * u2 * ( 1 - u ) + P3 * u3
BITS Pilani, Hyderabad Campus
Bezier Curves
P(u ) Po (1 u ) n P1C (n,1)u (1 u ) n1 P2C (n,2)u 2 (1 u ) n2
... Pn1C (n, n 1)u n1 (1 u ) Pnu n 0 u 1
Substitute u=0 and u=1,…?
The curve is tangent to the first and last segments of
control polygonal segments…proof?
Deriving the parametric form “r” times
r
Pr (u 0)
n!
1r i
C (r , i ) Pi
n r ! i 0
r
P (u 1)
r n!
1 C (r , i) Pni
i
n r ! i 0
BITS Pilani, Hyderabad Campus
Bezier Basis Functions for
(n+1)=4
1.2
0.8 B0
B1
0.6
B2
0.4 B3
0.2
What did
you
observe?
→
K=3
K=2
K=1
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