---
title: "How to fix n-gons in a USD mesh | Spatial Compiler"
description: "USD stores any polygon through faceVertexCounts and subdivides by default. Split n-gons in your 3D editor and set subdivisionScheme to none for games."
canonical: https://appliedmanifold.com/mesh/fix-ngons-usd/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

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

meshfx // USD NGONS

# How to fix n-gons in a USD file

You fix n-gons in a USD mesh by triangulating or quad-cutting them in your 3D editor, then setting `subdivisionScheme` to `none` before export. USD stores any polygon through `faceVertexCounts`, and its default subdivision setting smooths n-gons into extra quads in renderers that honor it, so the same file can look different in your engine.

[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/).

-   `faceVertexCounts`: corners per face
-   `subdivisionScheme` defaults to `catmullClark`
-   Game meshes: set it to `none`

01 // WHY

## How USD stores and smooths n-gons

A USD mesh keeps positions in `points`, the corner count of each face in `faceVertexCounts`, and the corners themselves in `faceVertexIndices`. A 5 in `faceVertexCounts` is a pentagon.

With `subdivisionScheme` unset, USD treats the mesh as a Catmull-Clark subdivision surface, which cuts every n-gon into quads around a center point when a renderer subdivides it. A game engine importer triangulates the base mesh instead, so the preview and the engine can disagree.

02 // HOW TO

## Split n-gons and turn off subdivision

1.  Find n-gons: select faces by sides in your 3D editor, or look for values above 4 in `faceVertexCounts` in the `.usda` text.
2.  Split concave and non-planar n-gons into quads or triangles.
3.  Set `subdivisionScheme` to `none` on meshes meant for a game, so every program shows the same faces.
4.  Triangulate on export if your engine's USD importer splits faces differently from your editor.
5.  Export the USD, or a GLB for an engine without a USD importer.

FBX and USD input are not supported by meshfx. Export glTF, GLB, OBJ, STL or surface PLY first, then inspect the measured output. Hosted meshfx runs are available in the Playground.

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/)
-   [Fix n-gons AvailableFind faces with more than four sides and cut them into quads or triangles yourself before an engine splits them badly.](https://appliedmanifold.com/mesh/fix-ngons/)
-   [USD normals AvailableCheck a USD mesh's orientation, doubleSided and subdivisionScheme attributes, then fix face direction in your 3D editor.](https://appliedmanifold.com/mesh/fix-flipped-normals-usd/)
-   [USD to GLB AvailableConvert a USD stage to GLB by hand, and handle what changes: metersPerUnit, upAxis, winding, n-gons, materials and variants.](https://appliedmanifold.com/mesh/convert-usd-to-glb/)
-   [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/)
-   [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/)

[← OBJ n-gons](https://appliedmanifold.com/mesh/fix-ngons-obj/)[GLB duplicate vertices →](https://appliedmanifold.com/mesh/remove-duplicate-vertices-glb/)

04 // FAQ

## USD n-gon questions

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

**README.FIX\_NGONS\_USD**

### Are ngons bad in a USD file for games?

They are valid USD and import fine, but the subdivision default can smooth them in previews. Split concave ones and set `subdivisionScheme` to `none`.

### How do I triangulate ngons in a USD file?

Triangulate the mesh in your 3D editor and export it. The `faceVertexCounts` attribute then holds only threes.

### Does Unreal Engine triangulate USD ngons?

Yes, when it builds a static mesh from the USD file. Check concave faces after import to be sure they split cleanly.

### How do I clean up topology after a Boolean creates ngons in USD?

Connect the corners of the cut to nearby vertices so long ngons become quads and triangles, then export with `subdivisionScheme` set to `none`.

## 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/)
