BezierCurve Example Questions
BezierCurve Example Questions
Given the Bezier curve with four control points Pi, answer the following questions:
As the above expression is written in explicit form the polynomial form of the curve is
obtained.
𝐵𝑥 (𝑡) 0 4 12
3 3 3
𝐵(𝑡) = [𝐵𝑦 (𝑡)] = ( ) 𝑡 0 (1 − 𝑡)3 [0] + ( ) 𝑡1 (1 − 𝑡)2 [5] + ( ) 𝑡 2 (1 − 𝑡)1 [ 5 ]
0 1 2
𝐵𝑧 (𝑡) 0 0 0
16
3
+ ( ) 𝑡 3 (1 − 𝑡)0 [ 0 ]
3
0
𝐵𝑥 (𝑡) 4 12 16
𝐵 (𝑡) 3 2 3 2 3
𝐵(𝑡) = [ 𝑦 ] = 3(𝑡 − 2𝑡 + 𝑡) [5] + 3(−𝑡 + 𝑡 ) [ 5 ] + 𝑡 [ 0 ]
𝐵𝑧 (𝑡) 0 0 0
8
𝐵(𝑡 = 0.5) = [3.75]
0
d. To calculate the tangent line at Q, first calculate the derivative of the curve with respect to
parameter “t”.
𝐵𝑥′ (𝑡) 18
𝐵′(0.5) = [𝐵𝑦′ (𝑡)] = [ 0 ]
𝐵𝑧′ (𝑡) 0
e. This is a planar curve as the control points have only X and Y components. The Z
component was taken as 0 in the previous part of the question. The unit normal vector, N(t),
of the curve simplifies to the following form.
g. The control points of the new curve should be selected to satisfy G1 and G0 continuity.
The curve can be added either at the beginning (t=0) of the original curve or at the end (t=1)
of the original curve.
- If the first case is valid the last control point, Rn, of the new curve is at point P0(0,0,0) and
the line formed between (n-1)st and (n)th control points should be collinear with the line of P0
to P1.
- If the second case is valid the first control point, R1, of the new curve is at point P4(16,0,0)
and the line formed between 1st and 2nd control points should be collinear with the line of P2
to P3.
2. Given the Bezier curve with four control points Pi, answer the following questions:
N
P1=(5,4,0)
T
P0=(2,2,0)
P2=(7,1,0)
As the above expression is written in explicit form, the polynomial form of the curve is
obtained.
𝐵𝑥 (𝑡) 2 5 7
2 2 2
𝐵(𝑡) = [𝐵𝑦 (𝑡)] = ( ) 𝑡 0 (1 − 𝑡)2 [2] + ( ) 𝑡1 (1 − 𝑡)1 [4] + ( ) 𝑡 2 (1 − 𝑡)0 [1]
0 1 2
𝐵𝑧 (𝑡) 0 0 0
𝐵𝑥 (𝑡) 2 5 7
𝐵(𝑡) = [ 𝑦 (𝑡)] = (𝑡 2 − 2𝑡 + 1) [2] + 2(−𝑡 2 + 𝑡) [4] + 𝑡 2 [1]
𝐵
𝐵𝑧 (𝑡) 0 0 0
𝐵𝑥 (𝑡) −2𝑡 2 + 6𝑡 + 2
𝐵(𝑡) = [𝐵𝑦 (𝑡)] = [−5𝑡 2 + 4𝑡 + 2]
𝐵𝑧 (𝑡) 0
c. Since we know that the Q point is vertical to the control point P1, the coordinates of this
points on x direction are the same, which is 5. In order to find the y directional position of the
point Q, we have to find “t” at that point first.
We know that ,
When we put x=2.366 in the By equation we obtain By=-16,52, so this root is not appropriate
for us, also we know that 0 ≤ 𝑡 ≤ 1.
5
𝐵(𝑡 = 0.634) = [2.52]
0
d. To calculate the tangent line at Q, first calculate the derivative of the curve with respect to
parameter “t”.
3.46
𝐵′ (𝑡 = 0.634) = [−2.34]
0
e. This is a planar curve as the control points have only X and Y components. The Z
component was taken as 0 in the previous part of the question. The unit normal vector, N(t),
of the curve simplifies to the following form.
𝑏(𝑡) = 𝐵′ × 𝐵′′
𝐵𝑥′′ (𝑡) −4
𝐵′′(𝑡) = [𝐵𝑦′′ (𝑡)] = [−10]
𝐵𝑧′′ (𝑡) 0
3.46 −4 0
𝑏(𝑡 = 0.634) = 𝐵′ × 𝐵′′ = [−2.34] × [−10] = [ 0 ]
0 0 43.96
f. The curvature, K(t) of the curve at point Q is calculated as follows
1
𝑟(𝑡) = = 1.66
𝐾(𝑡)