Math 155A - Winter 2001
Programming Assignment #2 aka Computer Assignment #3
Overview: For this assignment you will write a program that accepts points via the mouse, and draws a spline curve which interpolates them. Your program will use two kinds of curves: Catmull-Rom curves and Overhauser curves.
Due date: Tuesday, May 1, midnight.
Your program should support the following:
I have written a skeletal version of the program, which is placed in the directory P:\Projects\CatmullRomDraw.
This program supports catching mouse clicks, the f and l
commands, and clamping to at most 64 points. It draws only straightline segments,
not curves: your job is to add to the program the ability to draw curves.
The sample program has been written to attempt to draw big, black points and thick, colored lines and curves. Whether this works on any particular machine is implementation dependent (I have tried it on four machines, with as many results.)
NEW: A sample executable is available as CatmullRomDraw.exe
Grading: Grading is individual as usual. Please do not modify your files after the due date. You should be prepared to explain how your program works, and to show examples of the relative advantages and disadvantages of the Catmull-Rom splines and the Overhauser splines.