Assignment 2 - Clipping Algorithms

CS5600 - Introduction to Computer Graphics

Due Tuesday, 21 February 2006, 23:59 hours


Overview

This lab assignment is to implement line and polygon clipping. Using line and polygon clipping algorithms you will determine starting and ending points of lines. For this assignment, you may use OpenGL to draw points or lines but for no other purposes. There is a new template file provided for you that demonstrates how to use openGL to draw points and lines, as well as data structures (std:vectors) for storing collections of lines and points, and functions to draw these collections. You are welcome to use the template as is, or modify it however you see fit.

Project Requirements

The following are requirements for the project. Turn in all your code and documentation using submit into the directory called assign2Linux for Linux assignments or assign2Windows for windows assignments (i.e. submit cs5600 assign2OS file1 file2...). Your code should be written in C/C++, however you may choose to develop on Windows or Linux. Be sure to hand in your MSVC project or your Makefile and that there are no problems running your code.

Resources

There is a new Makefile and template file that demonstrates the use of FLTK with openGL to draw lines.

NEW! MSVC Project

FYI: Vectors
The given template file uses std:vector which is a dynamic vector used to store lines and points. Please refer to the class webpage for a link to the C++ Standard Template Library for further explanation of vectors. The template file has basic vector function calls that should enable you to use this data structure effectively.