Various cases of Cohen Sutherland Line Clippings
Currently, we study how this clipping algorithm works. For the sake of simplicity we will tackle all the cases with the assist of illustration lines line1 to line 5 demonstrated in following figure. All line segments present a case.
Figure: Various cases of Cohen Sutherland Line Clippings
Note, that in above figure of various cases of Cohen Sutherland Line Clippings, line l1 is completely observable, line l2 and line l3 are completely invisible; line l4and line l5 are partially observable. We will determine these out comings as three separate cases.
Case 1: l1 → totally visible, that is, Trival acceptance
∴both points lie inside the window
Case 2: l2 and l3 → unseen that is Trival acceptance rejection
Case 3: l4 and l5→ partially visible