Doing all edges the polygon is fully clipped

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping: The Algorithm Basic idea: • Consider each edge of the viewport individually • Clip the polygon against the edge equation • After doing all edges, the polygon is fully clipped Sutherland-Hodgeman Clipping Input/output for algorithm: • Input: list of polygon vertices in order Input: • Output: list of clipped poygon vertices consisting of Output: old vertices (maybe) and new vertices (maybe) old Note: this is exactly...
View Full Document

This document was uploaded on 01/29/2014.

Ask a homework question - tutors are online