Compare Cohen Sutherland and Sutherland Hodgman clipping algorithm
Answers
Answer:
The Cohen–Sutherland algorithm is used in the field of Computer-Graphics for line clipping. The algorithm divides a 2D area into 9 regions and then effectively determines the lines and portions of lines that are visible in the central region of interest (called viewport).
Sutherland-Hodgeman Clipping Algorithm is derived by processing the boundary of polygon against each polygon edge (window corner). First, the entire polygon is clipped against one edge, then resulting polygon is considered, then the polygon is considered against the second edge and so on all the corners of the polygon are derived.
Cohen Sutherland and Sutherland Hodgman clipping algorithm:
- The 'Cohen - Sutherland' algorithm is a method used for 'line clipping' computer graphics.
- The Polygon Clipping algorithm from Sutherland-Hodgeman is operated by handling the polygon boundary opposite to each window corner or side.
- The technique of polygon-clipping is for a 'polygon' and the algorithm of Cohen-Sutherland to clip a line.
- In series, the 'polygon clipper' clips opposite to four edges, while the line clipper checks the outcode to see which corner is crossed, and only clips when appropriate.
To know more
Difference between cohen sutherland and cyrus beck algorithm
https://brainly.in/question/1472664
Write and explain cohen sutherland line clipping algorithm in computer graphics
https://brainly.in/question/3331749