---
title: "How to fix n-gons for a game engine | Spatial Compiler"
description: "Fix n-gons, faces with more than four sides, by selecting faces by side count and cutting them into quads or triangles before the engine splits them."
canonical: https://appliedmanifold.com/mesh/fix-ngons/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  Fix n-gons

meshfx // TOPOLOGY

# How to fix n-gons in a game model

You fix n-gons, faces with five or more sides, by cutting them into quads or triangles yourself before export. Select faces by side count in your 3D editor, then triangulate them or connect vertices with new edges. Choosing the cuts yourself avoids the shading streaks and bad bends an automatic split can cause.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

pyrofx effects work today, and new accounts start with $5 of usage.

**MODULE // meshfx AVAILABLE**

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the [Playground](https://appliedmanifold.com/playground/).

-   N-gon: a face with five or more sides
-   Engines draw triangles, so every n-gon gets split
-   Concave and non-planar n-gons split badly

01 // HOW TO

## Find and split n-gons

1.  Select faces by sides, set to greater than 4. Most 3D editors have Select Faces by Sides or a polygon count filter.
2.  Triangulate flat, convex n-gons on parts that never bend, with a beauty or shortest-diagonal method.
3.  On curved or animated surfaces, cut n-gons into quads instead, connecting opposite vertices or using a knife cut that follows the edge flow.
4.  Look for non-planar faces, whose corners do not lie on one plane, and split them along the fold.
5.  Triangulate on export, or run triangulate on a copy, so the file holds the triangles you checked.

meshfx measures holes, flipped faces and non-manifold edges. Each repair is checked against the source and undone with a warning if it moves the surface too far. Hosted meshfx runs are available in the Playground.

02 // WHEN IT MATTERS

## When an n-gon causes trouble

A flat, convex n-gon on a static prop is harmless, since any split gives the same picture. On a concave face, shaped like an L or a C, a simple fan of triangles from one corner can cross outside the face. On a non-planar face, the shading depends on which diagonal the importer picked.

Parts that bend need extra care. The triangles inside an n-gon stretch unevenly when a joint moves, so faces near elbows, knees and mouths should be quads with edge loops around the joint. Boolean cuts also leave long n-gons around the cut; join the cut corners to nearby vertices to break them up.

03 // RELATED

## Related pages

-   [N-gon faces AvailableAn n-gon is a face with five or more sides, which engines triangulate, and that can cause shading and bending problems.](https://appliedmanifold.com/learn/ngon/)
-   [FBX n-gons AvailableFBX keeps n-gons and lets the engine split them, so triangulate in your 3D editor or on export to choose the cuts.](https://appliedmanifold.com/mesh/fix-ngons-fbx/)
-   [OBJ n-gons AvailableOBJ face lines can hold any number of corners, so triangulate before export and stop each importer splitting them differently.](https://appliedmanifold.com/mesh/fix-ngons-obj/)
-   [GLB n-gons AvailableglTF holds triangles only, so triangulate n-gons yourself before exporting a GLB and keep the quad version as source.](https://appliedmanifold.com/mesh/fix-ngons-glb/)
-   [USD n-gons AvailableSplit USD n-gons in your 3D editor and set subdivisionScheme to none so previews and your engine show the same faces.](https://appliedmanifold.com/mesh/fix-ngons-usd/)
-   [meshfx repair AvailableRepair a broken mesh in order (loose parts, duplicate vertices, interior faces, holes, then normals) by hand in any 3D editor.](https://appliedmanifold.com/mesh/mesh-repair/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← Duplicate vertices](https://appliedmanifold.com/mesh/remove-duplicate-vertices/)[Zero-area faces →](https://appliedmanifold.com/mesh/remove-zero-area-faces/)

04 // FAQ

## N-gon questions

[All questions →](https://appliedmanifold.com/faq/)

**README.FIX\_NGONS**

### Are faces with five or more sides bad for game models?

Only some of them. Every engine splits them into triangles on import, so concave, flat or bending ones behave differently depending on the surface.

### How do I triangulate faces with five or more sides for a game engine?

Select faces with more than four sides and run Triangulate Faces with a beauty method or turn on triangulation in the exporter. Check curved areas afterward.

### How do I convert five or more sided faces into clean quads or triangles?

Connect opposite vertices or cut along the edge flow to make quads and triangulate only what cannot become quads.

### Why does a face with five or more sides deform incorrectly when animated?

Its hidden triangles stretch unevenly when the joint bends, which pinches the surface. Replace those faces near joints with quads and edge loops.

### How do I clean up topology after a Boolean cut?

Connect each corner of the cut to the nearest vertex on the surrounding faces, so long faces become quads and triangles. Remove any zero area faces left behind.

### Should a game ready mesh use quads or triangles?

Model in quads and ship triangles. The engine renders triangles either way and quads keep the model easy to edit and to bend cleanly.

## Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
