Polygon · 3D graphics

On this page 7

In 3D graphics, a polygon is a flat, closed surface element bounded by straight edges that connect three or more vertices in 3D space. It is one of the core ideas of 3D fundamentals: almost every model in games, film and product visualization is built from thousands or millions of polygons that together approximate a continuous surface.

Within 3D graphics & animation, the polygon is the unit that modeling tools edit, that shading assigns color to, and that the graphics processing unit (GPU) finally rasterizes into pixels. Not to be confused with the Polygon blockchain network, which is an unrelated scaling technology.

How a polygon is defined in 3D space

A polygon is defined by an ordered list of vertex indices, not by a separate shape of its own. Each vertex stores a position in a Cartesian coordinate system, and the polygon simply references which vertices form its corners and in which order they are connected.

The winding order of those vertices, clockwise or counterclockwise when viewed from the front, determines which side of the polygon counts as its front face. Renderers use winding order to compute the surface normal and to perform backface culling, which skips polygons that face away from the virtual camera.

The following table lists the data that a typical polygon carries or inherits from its vertices.

ElementWhat it storesWhat it affects
Vertex indicesReferences to corner pointsShape and position
Winding orderSequence of cornersFront side and culling
Face normalPerpendicular direction vectorLighting and flat shading
UV coordinates2D texture positions per cornerTexture mapping
Material indexAssigned material slotSurface appearance
Vertex colorsColor value per cornerPainted tint or masks
Data associated with a polygon

Triangles, quads and n-gons

Polygons are classified by their number of sides, and each type has a distinct role in a production pipeline. The triangle is the only polygon that is always planar, because any three points define exactly one plane, which is why GPUs render every surface as triangles in the end.

Modelers usually prefer quads while building a model, because four-sided polygons form clean edge loops that subdivide and deform predictably. Polygons with five or more sides, called n-gons, are acceptable on flat areas but often cause shading artifacts on curved or animated surfaces.

Polygon typeSidesTypical useMain drawback
Triangle3Real-time engines, final exportHard to read edge flow
Quad4Modeling, subdivision, animationCan become non-planar
N-gon5 or moreFlat caps and hard surfacesUnpredictable triangulation
Polygon types by number of sides

Before rendering, every quad and n-gon is split into triangles through triangulation. A quad becomes two triangles, and an n-gon with n sides becomes n minus 2 triangles, so the triangle count is the figure that real-time budgets usually measure.

A polygon is closely related to several neighboring concepts, and the terms are often used loosely. In strict usage, a face is the polygon as an element of a mesh, while a polygon mesh is the complete collection of vertices, edges and faces that describes an object.

ConceptDefinitionRelation to the polygon
VertexA point with a positionForms the corners
EdgeA line between two verticesForms the boundary
FaceA polygon inside a meshOften used as a synonym
Polygon meshConnected set of polygonsThe whole model
NURBS surfaceMathematically smooth patchConverted to polygons for rendering
Polygon and neighboring geometric concepts

Unlike a NURBS surface or a subdivision surface, a polygon is always flat and faceted. Curves are only approximated by adding more polygons, which is the core trade-off behind the distinction between low poly and high poly modeling.

Polygon count and performance

The polygon count of a model directly affects memory use, processing time and visual smoothness. More polygons produce smoother silhouettes and finer detail, but each additional triangle adds vertex processing work and increases the size of the asset in memory and on disk.

Budgets vary widely with the target platform and the importance of the object on screen. The ranges below are typical orders of magnitude, not fixed rules, and modern techniques such as virtualized geometry can raise them considerably.

Use caseTypical triangle rangeMain constraint
Mobile game prop100 to 5,000GPU power and battery
Console game character30,000 to 150,000Frame time at 30 to 60 fps
Film hero assetMillions after subdivisionRender time per frame
Sculpted source modelMillions to tens of millionsMemory and viewport speed
Typical triangle budgets by use case

To keep scenes responsive, studios use level of detail (LOD) versions of a model, which swap in simpler polygon sets as the object moves away from the camera. Normal maps baked from high-poly models then restore much of the apparent detail on the low-poly version.

Common polygon problems and how to fix them

Most rendering and export errors trace back to a small set of polygon-level defects. Experienced modelers check for these issues before texturing, rigging or exporting, because they become much harder to repair later in the pipeline.

ProblemTypical causeFix
Flipped normalsReversed winding orderRecalculate or flip normals
Non-planar quadOne vertex moved off planeTriangulate or flatten
Zero-area faceCollapsed or merged verticesMerge by distance and clean up
Overlapping facesDuplicated geometryDelete duplicates
Shading artifactsN-gons on curved areasRebuild as quads
Polygon defects, causes and fixes
  • Non-manifold geometry, such as an edge shared by three faces, breaks booleans, 3D printing and some simulations.
  • Long thin triangles interpolate shading poorly and can flicker at a distance.
  • Inconsistent normals across a mesh produce dark seams under real-time lighting.

In everyday language

A polygon is a small flat tile with straight sides. A 3D model is made by fitting many of these tiles together, much like a disco ball or a soccer ball is made of flat panels that together look round.

The more tiles you use, the smoother the object looks, but the more work the computer has to do. Artists therefore balance detail against speed, using fewer tiles for objects far away and more for objects close to the viewer.

Seen in the real world

A small studio prepares a wooden chair for a mobile furniture app. The artist first models it from quads, about 4,000 polygons in total, so the edge loops around the curved backrest stay clean and easy to adjust.

Because the app must run smoothly on mid-range phones, the artist creates a version of about 1,200 triangles and bakes the details of a sculpted high-poly version into a normal map. Before export, a cleanup pass finds two flipped normals on the seat that would have rendered as black patches.

The final asset loads in under a second, keeps a smooth silhouette at typical viewing distances, and looks nearly identical to the detailed version on a phone screen.