Professional Documents
Culture Documents
Subject: Computer Graphics Sajjad Hussain 1905 Wali Muhammad 1919
Subject: Computer Graphics Sajjad Hussain 1905 Wali Muhammad 1919
Polygons
A polygon is a closed shape figure that has a minimum of three sides and three vertices. The
term ‘poly’ means ‘many’ and ‘gon’ means ‘angle’. Thus, polygons have many angles. The
perimeter and area of polygon depend upon its types. The straight line segments that make up
the polygon are called its sides or edges and the points where the sides meet are the
polygon's vertices.
Regular Polygons
Irregular Polygons
Concave Polygons
Convex Polygons
Pentagon Polygons
Hexagon Polygons
Convex polygon
A polygon is called convex of line joining any two interior points of the polygon lies
inside the polygon. In a convex polygon, the measure of the interior angle is less than 180
degrees. It is exactly opposite to the concave polygon.
Concave polygon
In a concave polygon, at least one angle measures more than 180 degrees.
Fill Polygon
Polygon is an ordered list of vertices as shown in the following figure. For filling polygons with particular
colors, you need to determine the pixels falling on the border of the polygon and those which fall inside
the polygon
Boundary Fill
.
Seed Fill (flood Fill)
Unfilled Polygan
When an unfilled polygon is rendered, only the points on the perimeter of the polygon are drawn