0% found this document useful (0 votes)
10 views2 pages

Assignment 2

This assignment focuses on parametric cubic splines and Bezier curves, requiring students to determine the equation of a cubic spline, derive a matrix representation for a Bezier curve, and write a function to plot the Bezier curve using given control points. Additionally, students must analyze the effects of changing control point order and moving control points on the curve's shape. Lastly, the assignment includes a problem on ensuring continuity between two Bezier curve segments at a specified point.

Uploaded by

Aniket Adsule
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)
10 views2 pages

Assignment 2

This assignment focuses on parametric cubic splines and Bezier curves, requiring students to determine the equation of a cubic spline, derive a matrix representation for a Bezier curve, and write a function to plot the Bezier curve using given control points. Additionally, students must analyze the effects of changing control point order and moving control points on the curve's shape. Lastly, the assignment includes a problem on ensuring continuity between two Bezier curve segments at a specified point.

Uploaded by

Aniket Adsule
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

ME 714 Computer-integrated Manufacturing (1)

Assignment 2
Due: January 24, 2019

Topics: Parametric Cubic Spline, Bezier Curves


Note: Please show all the important steps while answering the questions.

1. Determine the equation of the parametric cubic spline passing through points A and B, [4]
A = (2,5), Slope vector at A is at 900 w.r.t. the X-axis and has magnitude = 1,
B = (6,0), Slope vector at B is at 450 w.r.t. the X-axis and has magnitude = 1.
What is the slope of this curve at t = 0.5?

2. Matrix representation of the parametric cubic spline is given as follows, [3]


  
2 −2 1 1 P (0)
  
h i −3 3 −2 −1  P (1) 
P (t) = [t][MH ][GH ] = t3 t2 (1)
  
t 1   
0 0
 0 1 0  P (0)
 

1 0 0 0 P 0 (1)

where, [MH ] is the Hermite matrix and [GH ] is geometric coefficient matrix. Derive a similar
matrix representation for the Bezier curve (i.e., B(t) = [t][MB ][V ]) given four control points
(V0 , V1 , V2 , V3 ).

3. Write a function in MATLAB or Python to plot the Bezier curve given control points (V0 , V1 , V2 , V3 ). [10]
The input to the function will be a four by two matrix [V],
 
Xv 0 Yv 0
 
X Y 
 v v1 
[V ] =  1  (2)
X Y 
 v2 v2 
Xv 3 Yv 3

where, Xvi and Yvi are the x- and y-coordinates of the control point Vi . Upload your code as a
text file named ’[Link]’ (e.g., [Link]) in the as-
signment 2 section on the Moodle. (Note: Make sure your code is well-commented. Use atleast
100 points on the curve to plot the curve.)

Soham Mujumdar ME 714 CIM(1) Assignment 2 Page 1 of 2


4. Use your code from Q. 3 to plot the Bezier curves for each of the following sets of control points, [8]

• V0 = (0, 0), V1 = (3, 4), V2 = (5, 2), V3 = (6, 0)


• V0 = (6, 0), V1 = (5, 2), V2 = (3, 4), V3 = (0, 0)
• V0 = (0, 0), V1 = (5, 2), V2 = (3, 4), V3 = (6, 0)
• V0 = (0, 0), V1 = (3, 4), V2 = (5, −2), V3 = (6, 0)

Based on the plots, comment on what happens to the curve when (a) the order of the control points
is changed, and (b) one of the control points is moved.

5. Find (x,y,z) if the two Bezier curve segments (B1 and B2 ) passing through following sets of [5]
control points are required to be C 1 continuous at the common point D.

• B1 : A = (2, 3, 4), B = (3, 1, 5), C = (x, y, z), D = (3, 4, 3)


• B2 : D = (3, 4, 3), E = (2, 6, 0), F = (5, 7, 5), G = (5, 2, 3)

Soham Mujumdar ME 714 CIM(1) Assignment 2 Page 2 of 2

You might also like