next up previous
Next: Polygon Scan Conversion Up: Polygons Previous: Polygons

Polygon Clipping

Polygon Clipping (Sutherland-Hodgman):

Approach:

Contrast with Line Clipping:

There are four cases to consider

Four Cases:

Case 1:
Polygon edge is entirely inside the window edge

\

Case 2:
Polygon edge crosses window edge going out

\

Case 3:
Polygon edge is entirely outside the window edge

\

Case 4:
Polygon edge crosses window edge going in

\

Simple Examples:
...
An Example:
With a non-convex polygon...

\

Readings: Hearn and Baker, Section 6-8; Red book, 3.11; White book, 3.14.


next up previous
Next: Polygon Scan Conversion Up: Polygons Previous: Polygons

CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab

cs488@cgl.uwaterloo.ca