• Home
  • Textbooks
  • Computer Graphics with Open GL
  • Spline Representations

Computer Graphics with Open GL

Donald Hearn. M. Pauline. Baker, Warren R.Carithers

Chapter 13

Spline Representations - all with Video Answers

Educators


Chapter Questions

02:53

Problem 1

Write a routine to display a two-dimensional cardinal-spline curve, given an input set of control points in the $x y$ plane.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
02:53

Problem 2

Write a program using the routine developed in the previous exercise to display a two dimensional cardinal spline curve in the $x y$ plane along with the control points used to generate the curve. The curve should be drawn in black (on a white background) and the control points should be drawn in blue. Additionally, allow the user to modify the control points via keyboard input. The user should be able to cycle through the control points and move each one around in the xy plane. The currently selected control point should be drawn in red. The curve should be redrawn each time a control point is moved.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
02:53

Problem 3

Write a routine to display a two-dimensional Kochanek-Bartels curve, given an input set of control points in the $x y$ plane.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
02:53

Problem 4

Write a program using the routine developed in the previous exercise similar to the program in Exercise 2. Control points should be drawn in addition to the curve on a white background and the user should be able to edit the control points in the same manner. The curve should be redrawn each time a control point is moved.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
05:35

Problem 5

What are the Bézier-curve blending functions for three control points specified in the $x y$ plane? Plot each function and identify the minimum and maximum blending-function values.

M Hassan Anwar
M Hassan Anwar
Numerade Educator
02:34

Problem 6

What are the Bézier-curve blending functions for five control points specified in the xy plane? Plot each function and identify the minimum and maximum blending-function values.

Linda Hand
Linda Hand
Numerade Educator
03:07

Problem 7

Modify the program example in Section 8 to display any cubic Bézier curve, given a set of four input control points in the $x y$ plane.

Lee Spence
Lee Spence
Numerade Educator
01:07

Problem 8

Modify the program example in Section 8 to display a Bézier curve of degree $n-1$, given a set of n input control points in the $x y$ plane.

Chris Trentman
Chris Trentman
Numerade Educator
05:51

Problem 9

Complete the OpenGL programming example in Section 8 to display any cubic Bézier curve, given a set of four input control points in the $x y$ plane.

Elham Kordzadeh
Elham Kordzadeh
Numerade Educator
05:17

Problem 10

Modify the program in the previous exercise to allow the user to edit the control points using keyboard input as in Exercise 2. The currently selected control point should be drawn in red, and the others in blue. The curve should be drawn in black and redrawn each time a control point is moved.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
01:07

Problem 11

Modify the OpenGL program example in Section 8 to display any spatial cubic Bézier curve, given a set of four input control points in $x y z$ space. Use an orthogonal projection to display the curve, with the viewing parameters specified as input.

Chris Trentman
Chris Trentman
Numerade Educator
00:20

Problem 12

Write a routine that can be used to design two-dimensional Bézier curve shapes that have first-order piecewise continuity. The number and position of the control points for each section of the curve are to be specified as input.

Amy Jiang
Amy Jiang
Numerade Educator
01:06

Problem 13

Use the routine developed in the previous exercise to allow the user to edit the control points using keyboard input as in Exercise 2. Controls points should be displayed in the same manner.

Carson Merrill
Carson Merrill
Numerade Educator
00:20

Problem 14

Write a routine that can be used to design two-dimensional Bézier curve shapes that have second-order piecewise continuity. The number and position of the control points for each section of the curve are to be specified as input.

Amy Jiang
Amy Jiang
Numerade Educator
01:06

Problem 15

Use the routine developed in the previous exercise to allow the user to edit the control points using keyboard input as in Exercise 2. Controls points should be displayed in the same manner.

Carson Merrill
Carson Merrill
Numerade Educator
01:06

Problem 16

Modify the program example in Section 8 to display any cuble Bézier curve, given a set of four input control points in the xy plane, using the subdivision method to calculate curve points.

Carson Merrill
Carson Merrill
Numerade Educator
03:07

Problem 17

Modify the program example in Section 8 to display any cubic Bézier curve, given a set of four input control points in the $x y$ plane, using forward differences to calculate curve points.

Lee Spence
Lee Spence
Numerade Educator
02:17

Problem 18

What are the blending functions for a twodimensional, uniform, periodic B-spline curve with $d=5 ?$

Manik Pulyani
Manik Pulyani
Numerade Educator
02:07

Problem 19

What are the blending functions for a twodimensional, uniform, periodic B-spline curve with $d=6$ ?

Lucas Finney
Lucas Finney
Numerade Educator
04:37

Problem 20

Modify the programming example in Section 10 to display a two-dimensional, uniform, periodic B-spline curve, given an input set of control points, using forward differences to calculate positions along the curve path.

Nicholas Majtenyi
Nicholas Majtenyi
Numerade Educator
04:55

Problem 21

Modify the program in the previous example to display the B-spline curve using OpenGL functions.

Emily Min
Emily Min
Numerade Educator
01:06

Problem 22

Modify the program in the previous exercise to allow the user to edit the control points using keyboard input as in Exercise 2. Controls points should be displayed in the same manner.

Carson Merrill
Carson Merrill
Numerade Educator
03:51

Problem 23

Write a routine to display any specified conic in the $x y$ plane using a rational Bézier-spline representation.

Aamir Mithaiwala
Aamir Mithaiwala
Numerade Educator
03:51

Problem 24

Write a routine to display any specified conic in the $x y$ plane using a rational $\mathrm{B}-s \mathrm{pline~representa-~}$ tion.

Aamir Mithaiwala
Aamir Mithaiwala
Numerade Educator
02:18

Problem 25

Develop an algorithm for calculating the normal vector to a Bézier surface at a given point $\mathbf{P}(\mathrm{u}, \mathrm{v})$.

Gopesh Vishwakarma
Gopesh Vishwakarma
Numerade Educator
05:27

Problem 26

Derive expressions for calculating the forward differences for a given quadratic curve.

Bobby Barnes
Bobby Barnes
University of North Texas
00:45

Problem 27

Derive expressions for calculating the forward differences for a given cubic curve.

Joseph Liao
Joseph Liao
Numerade Educator