Modeling Synthetic Curves (Hermite Cubic Spline) : Computer-Aided Design
Modeling Synthetic Curves (Hermite Cubic Spline) : Computer-Aided Design
Computer-aided design
P–representation of H-Cubic Spline curve in Vector Matrix Form
P(u) = U [MH] V
P0
P
1
P0'
'
P1
G.C.M (1,1) (5,1)
(Geometry Coefficient Matrix)
P0 P1 P(u) =
(2u3–3u2+1)P0+
(–2u3+3u2)P1 +
(u3–2u2+u)P0'+
(u3–u2)P1'
P’0
P’1
P4
P’0
P3
P2
P1
P0
P0
P’’(u1=1) = P’’(u2=0)
Computer-aided design Slide #5
Blending of HCS segments
P(u) = (2u3–3u2+1)P0 + (–2u3+3u2)P1 + (u3–2u2+u)P0' + (u3–u2)P1'
P’(u) = (6u2–6u)P0 + (–6u2+6u)P1 + (3u2–4u+1)P0' + (3u2–2u)P1'
P’’(u) = (12u–6)P0 + (–12u+6)P1 + (6u–4)P0' + (6u–2)P1'
P’2 P’’(u1=1) = P’’(u2=0)
P’1
P2 P’’(u1=1) P’’(u2=0)
u2 6P0 – 6P1 + 2P’0 + 4P’1 –6P1 + 6P2 – 4P’1 – 2P’2
P’0 P1
u1 6P0 – 6P1 + 2P’0 + 4P’1 = –6P1 + 6P2 – 4P’1 – 2P’2
Changing the data points (end points) and the slope, changes the entire
shape of the spline.
This does not provide an intuitive feel required for design, not very popular.
P1
P2
P0
P1
P2
P0
Find equation of a Hermite cubic spline that passes through points: [1 2] &
[3 4] and whose tangent vectors are 2 lines connecting these two points
with [2 7] as shown.
2,7
3,4
1,2
2,7
3,4
1,2
Computer-aided design
Tutorial 3
Three composite HCS segments are to be used to form a HCS curve for a
particular application. Seg-1 with P0 [3 3] & P1 [5 4] | Seg-2 with P1 [5 4]
& P2 [7 6] | Seg-3 with P2 [7 6] & P3 [9 7]. If TVs at P0 and P3 are [3 0]
and [3 0], respectively, then evaluate intermediate TVs in terms of data
points and associated TVs.
9,7
7,6
5,4
3,3
9,7 P’3
P3
P’2
P27,6
P’1
5,4
3,3 P1
P0 P’
0
Computer-aided design
Assignment – Matlab exercise
What would be the best HCS curve to design a water slide in a theme park ?
Computer-aided design
Who is Bezier?
P1
u
P0 P3
u=0 u=1
The data points of the Bezier curve are called control points.
Only the first and the last control points lie on the curve. The other
points define the shape of the curve.
The curve is always tangent to the first and the last polygon segment.
The curve shape tends to follow the polygon shape.
The slope and shape of the Bezier curve is controlled by its data points
unlike the Hermite cubic curve.
This provides the designer with a much better feel for the relationship
between the input points and the output curve.
Hermite cubic spline is always a cubic curve, whereas the degree of the
Bezier curve is defined by the number of data points and is variable.
n + 1 data points define nth degree curve , which permits higher order
continuity. CAD systems limit the degree of the curve.
n
P (u ) Pi Bi ,n (u ) 0 u 1
i 0
Computer-aided design Slide #30
Bezier Curve | Parametric Equation
n
P(u ) Pi Bi ,n (u ) 0 u 1
i 0
Computer-aided design
Bezier Curve | Parametric Equation
n
P(u ) Pi Bi ,n (u ) 0 u 1
i 0
……
Computer-aided design
THANK YOU !
Computer-aided design