Graphics Package: Assigments


Required

1 - Get the library libgp.a . Save the file gp.tgz , decompress it with gunzip and use tar to create the directory "./i3d/base/gp". Compile and install the library.

2 - Using the gp library, write an interactive program to input a 2D polygonal curve. The program should write the data to the stadard output.

3 - Using the gp library, write a program that reads a 2D polygonal curve from the standard input, and draws it.


Optional

4 - Using the gp library, design and implement a button menu. When a button is pressed the program should print the text of the button.

5 - Using the gp library, design a valuator widget. When the valuator is moved the program should print the value.


Challenge

6 - Combine the previous programs to create a complete polygonal line editor, with button menus for the different functions (i.e. load, save, clear, etc.), a valuator for global scaling, and different functions assigned to the mouse buttons (i.e. insert point, move point, delete point).

7 - If you feel really inspired implement a Bezier curve editor using a subdivision algorithm.