Unit II Curves & Surfaces
Unit II Curves & Surfaces
Unit II Curves & Surfaces
6.5 10.33 4 11
13 15.464 8 16
Plot the hermite cubic curve having end points P0(1,3) and P1(7,2). The tangent vector for end P0
is defined by a line joining P0 and another point P2(10,8), whereas the tangent vector for end P1
is defined by a line joining P1 and another point P3(6,0).
Solution:
From given data, P0 = [1 3], P1 = [7 2], P2 = [10 8], P3 = [6 0]
The tangent vectors are, P’0 = P2 – P0 = [9 5] and P’1 = P3 – P1 = [-1 -2]
The equation for hermite cubic curve is,
P(u) (2u 3 3u 2 1)P 0 ( 2u 3 3u 2 )P1 (u 3 2u 2 u)P 0' (u 3 u 2 )P1'
the values for x and y coordinate s can be determined as under,
P x (u) (2u 3 3u 2 1)P x0 ( 2u 3 3u 2 )P x1 (u 3 2u 2 u)P x0
'
(u 3 u 2 )P x1
'
2 3 2 3 2 3 3
1 - 3u 3u -u 15 u 30u 15 u 18 u 18 u 7u
2 3
1 - 1 2u - 9u 3u
3 2 2 3
P y (u) P y0 (1 - u) 3 P y1 u( 1 - u) 3 P y2 u (1 - u) P y3 u
2
3 (1 - 3u 3u - u 3 ) 18 u( 1 - 2u u 2
) 3 0 u 2
(1 - u) 2 u 3
2 3 2 3 3
3 - 9u 9u - 3u 18 u 36u 18 u 2u
2 3
3 9u - 27u 17 u
These values can be tabulated as below,
u 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
Px(u) 1 2.113 3.064 3.871 4.552 5.125 5.608 6.019 6.376 6.697 7
Py(u) 3 3.647 3.856 3.729 3.368 2.875 2.352 1.901 1.624 1.623 2