Sutherland-Hodgeman Polygon Clipping Algorithm
- Read coordinates of all vertices of the Polygon.
- Read coordinates of the dipping window
- Consider the left edge of the window
- Compare the vertices of each edge of the polygon, individually with the clipping plane.
- Save the resulting intersections and vertices in the new list of vertices according to four possible relationships between the edge and the clipping boundary.
- Repeat the steps 4 and 5 for remaining edges or the clipping window. Each time the resultant list of vertices is successively passed to process the next edge of the clipping window.
- Stop.
Example:
For a polygon and clipping window shown in figure below give the list of vertices after each boundary clipping.

Solution:
Original polygon vertices are V1, V2, V3, V4, and V5. After clipping each boundary the new vertices are as shown in figure above.

Hidden Surface Elimination
- One of the most challenging problems in computer graphics is the removal of hidden parts from images of solid objects.
- In real life, the opaque material of these objects obstructs the light rays from hidden parts and prevents us from seeing them.
- In the computer generation, no such automatic elimination takes place when objects are projected onto the screen coordinate system.
- Instead, all parts of every object, including many parts that should be invisible are displayed.
- To remove these parts to create a more realistic image, we must apply a hidden line or hidden surface algorithm to set of objects.
- The algorithm operate son different kinds of scene models, generate various forms of output or cater to images of different complexities.
- All use some form of geometric sortingto distinguish visible parts of objects from those that arehidden.
- Just as alphabetical sorting is used to differentiate words near the beginning of the alphabet from those near the ends.
- Geometric sorting locates objects that lie near the observer and are therefore visible.
- Hidden line and Hidden surface algorithms capitalize on various forms of coherence to reduce the computing required to generate an image.
- Different types of coherence are related to different forms of order or regularity in the image.
- Scan line coherence arises because the display of a scan line in a raster image is usually verysimilar to the display of the preceding scan line.
- Frame coherence in a sequenceof images designedto show motion recognizes thatsuccessive frames are very similar.
- Object coherence results from relationships betweendifferent objects or between separateparts of the same objects.
- A hidden surface algorithmis generally designedto exploit one or more of these coherence properties to increase efficiency.
- Hidden surfacealgorithm bears a strong resemblance to two-dimensional scan conversions.