CG Module2 PDF
CG Module2 PDF
2.1.1 Introduction
An useful construct for describing components of a picture is an area that is filled with
some solid color or pattern.
A picture component of this type is typically referred to as a fill area or a filled area.
Any fill-area shape is possible, graphics libraries generally do not support specifications
for arbitrary fill shapes
Figure below illustrates a few possible fill-area shapes.
Graphics routines can more efficiently process polygons than other kinds of fill shapes
because polygon boundaries are described with linear equations.
When lighting effects and surface-shading procedures are applied, an approximated
curved surface can be displayed quite realistically.
Approximating a curved surface with polygon facets is sometimes referred to as surface
tessellation, or fitting the surface with a polygon mesh.
1
Module 2 Fill Area Primitives
Below figure shows the side and top surfaces of a metal cylinder approximated in an
outline form as a polygon mesh.
Displays of such figures can be generated quickly as wire-frame views, showing only the
polygon edges to give a general indication of the surface structure
Objects described with a set of polygon surface patches are usually referred to as standard
graphics objects, or just graphics objects.
2
Module 2 Fill Area Primitives
Polygon Classifications
Polygons are classified into two types
1. Convex Polygon and
2. Concave Polygon
Convex Polygon:
The polygon is convex if all interior angles of a polygon are less than or equal to 180◦,
where an interior angle of a polygon is an angle inside the polygon boundary that is
formed by two adjacent edges
An equivalent definition of a convex polygon is that its interior lies completely on one
side of the infinite extension line of any one of its edges.
Also, if we select any two points in the interior of a convex polygon, the line segment
joining the two points is also in the interior.
Concave Polygon:
A polygon that is not convex is called a concave polygon.
Te below figure shows convex and concave polygon
The term degenerate polygon is often used to describe a set of vertices that are collinear
or that have repeated coordinate positions.