N-gon

On this page 8

An N-gon is a polygon face with five or more vertices in a polygon mesh, as opposed to a triangle with three or a quad with four. In 3D modeling, the term usually describes faces that a modeling tool creates during operations such as Boolean cuts, edge dissolves or fills, and it carries a practical warning: N-gons are perfectly valid geometry for many tasks, yet they behave unpredictably under subdivision, deformation and shading.

Understanding where an N-gon is harmless and where it causes artifacts is one of the core skills of clean topology in 3D graphics & animation. Experienced modelers neither ban N-gons outright nor ignore them; they control where they appear and resolve them before a mesh leaves the modeling stage.

How an N-gon is stored and drawn

An N-gon is stored as an ordered loop of vertex indices that encloses a single face. Modeling applications such as Blender, Maya or 3ds Max can keep these faces natively in their editing data structures, often a half-edge or BMesh-style representation, so the artist sees one clean face instead of a fan of triangles.

Graphics hardware, however, renders only triangles. Before display or export to a game engine, every N-gon is triangulated automatically, typically with a fan or ear-clipping algorithm. Because the software chooses the split, the result depends on the vertex order and face shape, and two programs may triangulate the same N-gon differently.

The following table compares the three face types that appear in a polygon mesh.

Face typeVertex countTypical roleSubdivision behavior
Triangle3Final game meshes, rigid detailCreates pinching and poles
Quad4Standard for clean topologySmooth, predictable result
N-gon5 or moreFlat caps, temporary modeling stageCreates a pole in the face center
Face types in a polygon mesh

Why N-gons cause problems

The main problems arise because an N-gon has no defined internal structure. A quad has two clear edge directions that can continue as an edge loop, while an N-gon interrupts that flow. Most issues fall into four groups, summarized in the table below.

SymptomCauseTypical fix
Pinching after subdivisionCatmull–Clark creates a high-valence pole at the face centerRebuild the area as quads
Shading streaks or dark patchesNon-planar face triangulated in an unfavorable wayFlatten the face or split it manually
Collapsing during deformationNo edge loops for the rig to bend alongAdd loops that follow the deformation
Different look after exportTarget application triangulates differentlyTriangulate before export with a fixed method
Common N-gon artifacts and their causes

Non-planarity is the most underestimated risk. If the vertices of an N-gon do not lie in one plane, the face has no single correct normal, and the renderer interpolates normals across whatever triangles the software produced. The result is visible shading artifacts on smooth or reflective surfaces, especially under strong highlights.

Selection and editing tools also suffer. Edge loop and loop cut selection stop at an N-gon because the algorithm cannot determine which edge continues the loop, which slows down later modeling and makes the mesh harder for colleagues to edit.

When N-gons are acceptable

N-gons are acceptable on flat, rigid surfaces that will not be subdivided or deformed. Hard surface modeling for rendering often uses them on panel faces, the caps of cylinders or the flat side of a machined part, where a single face is faster to edit and renders identically to a quad layout.

The decision depends mainly on what happens to the mesh next, as the following table shows.

SituationN-gon allowedReason
Flat cap on a static propYesPlanar face, no subdivision, no deformation
Blocking and early iterationYesSpeed matters more than topology
Mesh under a subdivision surface modifierUsually noCenter pole distorts the smoothed shape
Character face or jointsNoDeformation needs continuous edge loops
Asset delivered to another studioAvoidUnpredictable triangulation on import
Mesh for 3D printing or CAD exportYes, if planarConverted to triangles in STL output anyway
Deciding whether an N-gon may stay

With a subdivision surface, a modeler can still tolerate an N-gon if support edges isolate it on a completely flat area. The smoothing then stays confined, and the center pole has no curvature to distort.

How N-gons appear during modeling

Most N-gons are created as side effects of everyday operations rather than drawn deliberately. Knowing the sources makes them easier to track:

  • Boolean operations leave long N-gons where one shape cuts through another.
  • Dissolving edges merges neighboring faces into a single larger face.
  • Fill and bridge commands close open boundaries with one face by default.
  • Imported CAD and SVG data often arrives as large planar N-gons.
  • Extruding a circle profile leaves N-gon caps at both ends.

Most applications offer a select by face sides or mesh cleanup function that highlights every face with more than four vertices. Running it before a hand-off is a reliable habit in professional pipelines.

Methods for resolving N-gons

Resolving an N-gon means redistributing its vertices into quads, or into triangles where quads are impossible. The right method depends on the shape and on how many vertices the face contains, as compared below.

MethodBest forDrawback
Manual knife or connect edgesVisible curved areasTime-consuming on complex shapes
Grid fillCircular caps with an even vertex countNeeds an even number of boundary vertices
Triangulate modifierGame exports, final meshesAdds triangles that resist later editing
Tris to quads conversionCleaning imported or triangulated dataResults vary with angle thresholds
RetopologyHeavily damaged Boolean resultsHighest effort
Common methods for removing N-gons

A useful rule of thumb is to keep the vertex count even around a boundary. An even count can always be filled with quads, while an odd count forces at least one triangle or an extra pole somewhere in the patch.

N-gons compared with triangles and quads

N-gons sit at the opposite end of a spectrum from triangles. Triangles are always planar and unambiguous, which is why rendering hardware uses them exclusively, while quads offer the best balance of editability and smoothing. N-gons offer the most editing convenience and the least predictability. Final topology for animation and subdivision is therefore predominantly quads, with a small number of triangles and N-gons placed deliberately in areas that are flat, hidden or rigid.

Understanding it simply

A 3D model is built from many small flat tiles. Most tiles have three or four corners. An N-gon is a tile with five corners or more.

Such a tile works well on a flat, still surface, like the top of a table. Problems start when the model is smoothed or made to bend. The software must guess how to split the tile, and its guess can create dents and odd shading.

Think of a sheet of fabric sewn from square patches. Squares fold neatly in rows. One large patch with many corners folds in strange places. That is why modelers replace N-gons with four-sided tiles wherever the surface must move or curve.

Applied in practice

A product visualization artist models a kitchen kettle for a set of studio renders. To cut the spout opening quickly, the artist uses a Boolean operation, which leaves a 12-sided N-gon around the hole and several long N-gons across the curved body.

In flat preview shading the model looks correct. After a subdivision surface modifier at level 2 is added, however, the body shows a visible dimple and a dark streak near the spout. The artist selects all faces with more than four sides, rebuilds the region with a loop cut and a manual knife pass so that every face becomes a quad, and adds two support edges around the opening.

The flat bottom of the kettle keeps a single planar N-gon cap because it is never seen up close and does not curve. The final render shows clean reflections across the body, and the corrected region took about twenty minutes compared with hours of retouching in post-production.