Assignment 3 - Clipping Algorithms

CS4961 - Computer Graphics

Due February 26, 2001, 10:45 AM

NOTICE: NEW DUE DATE


Overview

This project builds on your previous project to implement line and polygon clipping. You will need to use your Bresenham line drawer to do this project.

Project Requirements

The following are requirements for the project. Both parts must be implemented for full credit.

Part 1: Line Clipping

Part 2: Polygon Clipping In both parts, the user should be able to change the clipping window without changing the line or polygon. The user must also be able to change the line/polygon without changing the clipping window. It is not necessary to draw lines and polygons at the same time.

When clipping, only points inside the clipping rectangle should be drawn. Do not draw points on or outside the rectangle. Again, GL and GLUT both contain functions that will draw lines and/or polygons and will perform clipping of these object. Again, YOU MAY NOT USE THEM. In all cases, drawing to the screen must be accomplished by specifying each pixel to draw.

In addition to the above requirements, include:

Turn in all your code and documentation using submit (on CS machines) or handin on CADE machines. Your code will be tested using whatever environment you turn it in on (CS or CADE). Your code should be written in C/C++ and compile using gcc/g++. The project folder for submit and handin is named clipping. (submit cs4961 clipping file1 file2...)

Additional Notes

This section contains any additional notes regarding this project either due to questions raised by students or discoveries of my own. I will send messages to the class mailing list announcing any notes or clarifications, but this will contain a digest of all such info. These notes will never change what is required in the project, but may clarify some formerly ambiguous points and so should be checked semi-regularly.