meshfx // CLEANUP
How to remove zero-area faces
You remove zero-area faces, also called degenerate triangles, by collapsing them in your 3D editor with a degenerate dissolve or cleanup command and a small distance threshold. A zero-area face has its corners on one point or one line, so it has no direction. Delete them before export, or they can cause black specks and physics errors.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- Corners on one point or one straight line
- Left by booleans, decimation, scans and merges
- Clean up with a degenerate dissolve, then check normals
01 // HOW TO
Collapse degenerate faces by hand
- Run your 3D editor's mesh cleanup and choose the degenerate option, often named Degenerate Dissolve or Delete Degenerate. Set the distance near 0.0001 m.
- If your editor has no such command, merge by distance on the whole mesh; triangles whose corners land on one point collapse with it.
- Find slivers that survive: select faces by area if your editor can, or use its mesh statistics or check tool to list faces below a minimum area.
- Triangulate the faces around a removed sliver if it left an n-gon behind.
- Recalculate normals and look at the shading where the slivers were.
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 // WHY IT MATTERS
Why a face with no area breaks things
A face normal comes from the cross product of two of its edges. With zero area that product is zero, so the normal has no direction, and smooth shading around it picks up a black speck or a streak. Tangents for normal maps fail the same way, and some physics engines reject a collision mesh that contains such a face.
Unreal Engine has a Remove Degenerates option in its Static Mesh build settings, on by default. Clean the source file anyway, so every engine and tool reads the same mesh.
How do I delete zero area faces from a mesh?
Run your editor degenerate cleanup with a distance near 0.0001 m or merge by distance if it has none. Then recalculate normals.
How do I fix degenerate triangles in a 3D model?
Collapse them with a degenerate dissolve, then triangulate any remaining multi sided face. Slivers that are thin but not flat may need their short edge merged.
How do I fix shading artifacts on a game ready mesh?
Check for zero area faces, duplicate vertices and flipped normals first, since each shows up as streaks or black spots. Then set smoothing with sharp edges.
How do I fix loose geometry and floating vertices?
Use your editor delete loose cleanup, which removes vertices and edges that belong to no face. Run it together with the degenerate cleanup.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.