The active edge list for scan line S1 contains edges E1 and E2 . From the left edge of the viewport to edge E1 , the beam paints the background colour. At edge E1 , the IN flag goes up for the left-hand polygon, and the beam switches to its colour until it crosses edge E2 , at which point the IN flag goes down and the colour returns to background.
![]()
B precedes A in order of maximum z but A should precede B in writing order.
![]()
The classification scheme is used to identify certain trivial cases that are easily handled. These "easy choice tests" and the resulting actions include:
[Surrounding][Intersecting]
[Inside]
[Outside]
![]()