A Lab Exercise for 2D Line Clipping
Abstract
Line clipping is a fundamental topic in an introductory graphics course. The simplicity and elegance of the classic Cohen-Sutherland 2D Line Clipping Algorithm makes it suitable for implementation by the student in a lab exercise. An understanding of the algorithm is reinforced by having students write actual code and see the results. A code framework is provided that allows an instructor to focus student effort on the algorithm while avoiding the details of the visualization API used to render the results.
BibTeX
@inproceedings {10.2312:cgems04-11-1362,
booktitle = {CGEMS - Computer Graphics Educational Materials},
editor = {-},
title = {{A Lab Exercise for 2D Line Clipping}},
author = {Stahl, David},
year = {9-7-2007},
publisher = {The Eurographics Association},
ISSN = {-},
DOI = {10.2312/cgems04-11-1362}
}
booktitle = {CGEMS - Computer Graphics Educational Materials},
editor = {-},
title = {{A Lab Exercise for 2D Line Clipping}},
author = {Stahl, David},
year = {9-7-2007},
publisher = {The Eurographics Association},
ISSN = {-},
DOI = {10.2312/cgems04-11-1362}
}