RTUComputer ScienceYr 2024 · Sem 52024

Q4Computer Graphics and Multimedia

Question

2 marks

What is Polygon Filling?

Answer

Polygon filling is the process of coloring all pixels inside a closed polygon boundary on a raster display.

Polygon filling (also called polygon shading or interior filling) is the process of assigning color values to all pixels that lie within a closed polygon boundary. After scan-converting the polygon edges, filling algorithms determine which pixels are inside the polygon and set their colors.

Common polygon filling algorithms include: Scan-Line Fill (processes each horizontal scan line and fills spans between edge intersections), Flood Fill (starts from a seed point inside the polygon and recursively fills neighboring pixels), and Boundary Fill (fills until a boundary color is encountered). The scan-line algorithm is most efficient for complex polygons.

Back to Paper