03/13/2003
15-462 Graphics I
18
Boundary Cases
•
Boundaries and special cases require care
–
Cracks between polygons
–
Parity bugs: fill to infinity
•
Intersections on pixel: set at beginning, not end
•
Shared vertices: count y
min
for parity, not y
max
•
Horizontal edges: don’t change parity
set pixel
don’t
set pixel
parity
change
no parity
change