The polygons we can represent can be arbitrarily large, both in terms of the number of vertices and the area. It is generally convenient and more appropriate to use a polygon mesh rather than a single mammoth polygon.
For example, you can simplify the process of rendering polygons by breaking all polygons into triangles. Then your triangle renderer from project two would be powerful enough to render every polygon. Triangle renderers can also be implemented in hardware, making it advantageous to break the world down into triangles.
Another example where smaller polygons are better is the Gouraud lighting model. Gouraud computes lighting at vertices and interpolates the values in the interiors of the polygons. By breaking larger surfaces into meshes of smaller polygons, the lighting approximation is improved.
Whenever you can, use Triangle strip, Triangle Fan, Quad StripTriangle mesh produces n-2 triangles from a polygon of n vertices.Triangle list will produce only a n/3 trianglesQuadrilateral mesh produces (n-1) by (m-1) quadrilaterals from an n x m array of vertices.Not co-planar polygonSpecifying polygons with more than three vertices could result in sets of points which are not co-planar! There are two ways to solve this problem:
|
![]() |