0% found this document useful (0 votes)
29 views5 pages

Bezier Curve Analysis and Calculations

Uploaded by

Nasim Barzegar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views5 pages

Bezier Curve Analysis and Calculations

Uploaded by

Nasim Barzegar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Given the Bezier curve with four control points Pi, answer the following questions:

a) What is the degree of the curve


b) Write the polynomial form of the curve
c) Calculate the coordinates of the point Q (t=0.5)
d) Calculate the tangent line at Q
e) Calculate the normal vector at Q
f) Calculate the curvature at Q
g) If you want to add another curve this existing curve such that two curves are G1
continuous, what would be conditions for the new curves control points?

a. As there are 4 control points the degree of the curve,n, is 3.

b. The polynomial form of the curve in compact form is written as follows


𝑛=3
𝑛
𝐵(𝑡) = ∑ ( ) 𝑡 𝑖 (1 − 𝑡)𝑛−𝑖 𝑃𝑖
𝑖
𝑖=0

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𝑡 3 + 12𝑡 2 + 12𝑡


𝐵(𝑡) = [𝐵𝑦 (𝑡)] = [ −15𝑡 2 + 15𝑡 ]
𝐵𝑧 (𝑡) 0

c. To find the coordinates of point Q, put t=0.5 in above polynomial form.

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”.

𝐵𝑥′ (𝑡) −24𝑡 2 + 24𝑡 + 12



𝐵′(𝑡) = [𝐵𝑦 (𝑡)] = [ −30𝑡 + 15 ]
′ 0
𝐵𝑧 (𝑡)

So, the tangent line at t=0.5 is

𝐵𝑥′ (𝑡) 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.

(−𝑌𝑇 , 𝑋𝑇 ) (−𝑌𝑇 , 𝑋𝑇 ) (0,18)


𝑁(𝑡) = = = = (0,1)
|(−𝑌𝑇 , 𝑋𝑇 )| √𝑋 2 + 𝑌 2 √02 + 182
𝑇 𝑇

f. The curvature, K(t) of the curve at point Q is calculated as follows

|(𝐵′ (𝑡)𝑥𝐵′′ (𝑡))| |[0 0 −540]| 540


𝐾(𝑡) = 3 = 3
=
|(𝐵′ (𝑡))| 18 5832

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)

a) What is the degree of the curve


b) Write the polynomial form of the curve
c) Calculate the coordinates of the point Q since it is vertical to the control point P1
d) Calculate the tangent line at Q
e) Calculate the normal vector and binormal vector at Q
f) Calculate the curvature and the radius at Q

a. As there are 3 control points the degree of the curve,n, is 2.

b. The polynomial form of the curve in compact form is written as follows


𝑛=2
𝑛
𝐵(𝑡) = ∑ ( ) 𝑡 𝑖 (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 ,

𝐵(𝑡) = 𝐵𝑥 (𝑡) = −2𝑡 2 + 6𝑡 + 2 = 5

The roots of the equation −2𝑡 2 + 6𝑡 + 2 are 𝑥1,2 = (2.366 , 0.634)

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.

When we put x=0,634 in the By equation we obtain By=2.52.

Then the coordinates of point Q is given as,

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”.

𝐵𝑥′ (𝑡) −4𝑡 + 6


𝐵′(𝑡) = [𝐵𝑦′ (𝑡)] = [−10𝑡 + 4]
𝐵𝑧′ (𝑡) 0

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.

(−𝑌𝑇 , 𝑋𝑇 ) (−𝑌𝑇 , 𝑋𝑇 ) (2.34 , 3.46) (3.46 , −2.34)


𝑁(𝑡) = = = =( ) = (0.83 , −0.56)
|(−𝑌𝑇 , 𝑋𝑇 )| √𝑋 2 + 𝑌 2 √3.462 + (−2.34)2 4.17
𝑇 𝑇

Binormal vector of a curve is calculated using the formula below,

𝑏(𝑡) = 𝐵′ × 𝐵′′

So we have to find the second derivative of the curve which is,

𝐵𝑥′′ (𝑡) −4
𝐵′′(𝑡) = [𝐵𝑦′′ (𝑡)] = [−10]
𝐵𝑧′′ (𝑡) 0

The binormal vector at point Q can be found as follows

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

|(𝐵′ (𝑡)𝑥𝐵′′ (𝑡))| |[0 0 43.96]| 43.96


𝐾(𝑡) = 3 = = = 0.6
|(𝐵′ (𝑡))| 4.173 72.51

The radius of the curve is given with the following equation,

1
𝑟(𝑡) = = 1.66
𝐾(𝑡)

Common questions

Powered by AI

Polynomial forms differ significantly between curves based on degree, influencing their flexibility and appearance. A cubic form, with n=3, allows for significant curvature and shape variation due to more degrees of freedom compared to quadratic forms (n=2), which are simpler and allow less variation. The cubic form can model more complex shapes and can accommodate more inflection points, impacting the curve's behavior in terms of oscillation and turning capabilities .

Tangent lines in Bezier curves are derived from the derivative of the curve's polynomial form. In planar curves, tangent derivations involve only the x and y components, simplifying calculations, whereas non-planar curves necessitate considering all spatial dimensions, involving x, y, and z components. The computation complexity increases with more dimensions due to added calculations for determining directional derivatives and resultant vectors .

Control point placement directly determines the shape and geometry of a Bezier curve. The proximity and directionality of control points relative to each other affect the tightness of the curve and curvature at specific points. Closer, sharper angles between control points increase curvature, leading to sharper turns, whereas smoothly distributed and farther-spaced points create more gradual curves. These placements affect local properties like radius of curvature and tangent vector consistency .

For planar Bezier curves, the calculations often simplify due to the absence of variation in the Z-dimension, allowing certain components to be ignored (e.g., B_z(t) = 0). The normal vector is directly calculated without requiring the full 3D cross product, simplifying to 2D vector operations since it is perpendicular in the plane. In non-planar curves, full 3D considerations are necessary, including all vector products and evaluations in three dimensions for derivatives and curvature .

The degree of a Bezier curve with four control points is 3. This is because the degree of the curve is always one less than the number of control points. The polynomial form of the curve is derived by using the Bernstein polynomial basis as follows: B(t) = ∑(3 choose i) t^i (1-t)^(3-i) P_i where n=3 and i ranges from 0 to 3. The explicit polynomial form is B(t) = [B_x(t) B_y(t) B_z(t)] = (3 choose 0) (1-t)^3 [0 0 0] + (3 choose 1) t (1-t)^2 [4 5 0] + (3 choose 2) t^2 (1-t) [12 5 0] + (3 choose 3) t^3 [16 0 0].

Curvature, K(t), of a Bezier curve at a point is calculated using K(t) = |(B'(t) x B''(t))| / |(B'(t))|^3, where B' and B'' are the first and second derivatives, respectively. At Q(t=0.5), B'(t) is [18, 0, 0] and B''(t) can be determined but equates to zero in one direction due to planarity. The cross product results in |[0, 0, -540]|. Thus, K(0.5) = 540/5832, resulting in a curvature value of approximately 0.0926 .

The tangent vector at a point on a Bezier curve is derived from the derivative of its polynomial form with respect to 't'. For Q(t=0.5), the derivative is B'(t) = [−24t^2 + 24t + 12, -30t + 15, 0]. Evaluating at t=0.5 results in the tangent vector B'(0.5) = [18, 0, 0]. The unit normal vector is perpendicular to the tangent vector, simplified to N(t) = (−Y_T, X_T)/√(X_T^2 + Y_T^2). At t=0.5, the normal vector is N(0.5) = (0, 1).

To calculate the coordinates of point Q on the Bezier curve, the parameter t is set to 0.5 in the polynomial representation of the curve. Substituting t=0.5 into the polynomial B(t) = [−8t^3 + 12t^2 + 12t, -15t^2 + 15t, 0] yields the point Q(0.5) = [8, 3.75, 0].

G2 continuity requires that not only the curve and its first derivative (tangent) are continuous at the joining point, but also that the second derivative, which relates to the curvature, matches as well. This demands a more complex alignment of control points to ensure both the direction of the tangent and the rate of turn or curvature are consistent at the join, unlike G1 which only aligns tangents .

For G1 continuity, the two curves must share a common tangent direction at the joining point. If the new curve is added at the beginning of the existing curve, the last control point of the new curve must be at the initial point of the existing curve, and the line formed between the last two control points should be collinear with the initial segment of the existing curve. If added at the end, the first control point of the new curve should be at the endpoint, with the initial segment collinear with the curve's end .

You might also like