Sutherland-Hodgeman Polygon Clipping: Abstract
Sutherland-Hodgeman Polygon Clipping: Abstract
Sutherland-Hodgeman Polygon Clipping: Abstract
clipping
Abstract:
Background:
The Sutherland - Hodgman algorithm performs a clipping of a polygon against each window edge
in turn. It accepts an ordered sequence of verices v1, v2, v3, ..., vn and puts out a set of vertices
defining the clipped polygon.
This figure represents a polygon (the large, solid, upward pointing arrow) before clipping has
occurred.
The following figures show how this algorithm works at each edge, clipping the polygon.
a. Clipping against the left side of the clip window.
As the algorithm goes around the edges of the window, clipping the polygon, it encounters four
types of edges. All four edge types are illustrated by the polygon in the following figure. For each
edge type, zero, one, or two vertices are added to the output list of vertices that define the clipped
polygon.
Algorithms:
Conclusion:
In summary, the algorithm is efficient when outcode testing can be done cheaply (for
example, by doing bitwise operations in assembly language) and trivial acceptance or
rejection is applicable to the majority of line segments .(For example, large windows -
everything is inside , or small windows - everything is outside).
References:
• Computer Graphics: Principles and Practice, 3rd Edition (2nd is also highly regarded)
- this book is called The Bible of CG
• Computer Graphics, C Version,
• Fundamentals of Computer Graphics,
• Computer Graphics using OpenGL,
• Interactive Computer Graphics: A Top-Down Approach with WebGL,3D Computer
Graphics: A Mathematical Introduction with OpenGL†