Sub topic 9
Common fixes: rerouting loops, moving poles, removing n-gons
This chapter assumes you can move between Object Mode and Edit Mode, select vertices, edges and faces, and add a Subdivision Surface modifier. It also assumes you know the vocabulary from earlier chapters: quads, n-gons, edge loops, edge flow, poles and valence (the number of edges meeting at a vertex).
You have found a problem on a subdivided mesh. This chapter covers what to do about it. Most fixes fall into three groups: remove n-gons and unwanted triangles, move poles to a harmless place, and reroute loops so they follow the form.
Fix one problem at a time
Topology edits interact. Moving a pole changes the loops around it, and removing an n-gon can create a new pole. Work in this order:
- Confirm what is wrong with the Subdivision Surface modifier on, and note the exact location.
- Fix n-gons and triangles first, since they are the easiest to find and the most likely to cause trouble.
- Fix poles second.
- Reroute loops last, and only where the shape still looks wrong.
- Re-check after each fix.
Keep the modifier visible while you work. Turn on "On Cage" if you want to edit on the smoothed result, but note that it can make selection confusing on dense meshes.
Removing n-gons
An n-gon is a face with more than four sides. Subdivision splits an n-gon into quads around a center point, and the result often looks pinched or uneven near the edges of that face. An n-gon on a flat, hidden area may be harmless. An n-gon on a curve is a defect.
Find them
Use Select > Select All by Trait > Faces by Sides. Set Number of Vertices to 4, and set Type to "Greater Than". Click the button to select every n-gon. You can also turn on Statistics in the viewport overlays to track counts as you edit.
Split the n-gon into quads
The usual fix is to cut the n-gon into quads using the Knife tool or the Connect Vertex Path operator.
- Select two vertices on opposite sides of the n-gon.
- Press J (Connect Vertex Path) to add an edge between them.
- Check the new faces. If one is still an n-gon, repeat.
An n-gon with an odd number of sides cannot be split into only quads using the existing vertices. Take a five-sided face: any cut you make leaves a triangle and a quad. You have two options. Add a vertex on one edge with the Knife tool, which gives you an even count. Or accept one triangle and move it to a flat area (covered below).
Remove the hole-filling n-gon
A common source of n-gons is a hole you closed with F (Fill) or Alt+F (Beauty Fill / Grid Fill). Use Face > Grid Fill instead. It selects a boundary loop and fills it with a quad grid. The boundary needs an even number of edges, and the result is all quads.
Handling triangles
Triangles are not always a problem. A triangle on a flat area stays flat under subdivision, and a triangle on a hidden face costs you nothing. A triangle on a curved, visible surface can cause a dimple or crease.
Two practical options:
- Convert the triangle and a neighbouring quad into two quads by dissolving a shared edge and cutting again.
- Leave the triangle and push it toward a flat area by sliding the edges around it.
Select a triangle's edge and press Ctrl+X (Dissolve Edges) to merge two faces. The merged face has more sides, so you must then split it again. Dissolve gives you a chance to rebuild the layout rather than just adding more cuts.
import bpy
import bmesh
obj = bpy.context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
# Deselect everything, then select triangles and n-gons
for f in bm.faces:
f.select = len(f.verts) != 4
bmesh.update_edit_mesh(obj.data)
print(sum(1 for f in bm.faces if f.select), "faces selected")Run this in Edit Mode with Face Select active. It selects every face that is not a quad so you can walk through them one by one.
Moving poles
A pole is a vertex where the edge count is not four. Poles are unavoidable on most models. A pole with three edges (an E-pole) or five or more edges (an N-pole) forces the loops around it to bend. Under subdivision, the surface near a pole can pinch or bulge. A pole on a flat or low-curvature area is usually invisible. A pole on a bend, a highlight or a deforming joint is a problem.
Where poles belong
| Area | Pole risk | Reason |
|---|---|---|
| Flat panel | Low | Little curvature to distort |
| Top of a sphere or cylinder cap | Moderate | Fine if centered and symmetric |
| Sharp curve or edge | High | The pinch is visible in reflections |
| Joint such as elbow or knee | High | Deformation stretches the pinch |
| Hidden or underside area | Low | Nobody sees it |
Slide the pole along the loops
You cannot delete a pole directly, but you can push it along the mesh by redirecting edges.
- Select the edge that leads into the pole from the side you want to move away from.
- Press Ctrl+X to dissolve it. The pole disappears, but the faces around it merge into an n-gon.
- Use the Knife tool or Connect Vertex Path to cut a new edge that runs in the direction you want. The new pole now appears somewhere else.
- Slide the surrounding vertices with G G (Edge Slide or Vertex Slide) to restore the shape.
A second approach is to spin an edge. Select an edge and use Edge > Rotate Edge CW or Rotate Edge CCW. This changes which two vertices the edge connects, so the valence of four vertices changes at once. It works well to shift a pole by one step in a regular grid.
Merge a three-edge pole into the flow
An E-pole is a vertex with three edges. If it sits inside a quad grid and you do not need it, select it and press Ctrl+X (Dissolve Vertices) to remove it. The faces around it merge into one quad. Check that the result is a quad and not an n-gon.
Terminate loops instead of leaving them dangling
When a loop has to end, end it in a pole that you have placed on purpose. A common pattern is the 3-to-5 transition. Two loops merge into one, creating one E-pole and one N-pole next to each other. This lets you reduce density in an area without leaving triangles.
Rerouting loops
Sometimes the n-gons and poles are fine and the shape still looks wrong. The cause is edge flow: loops that run across a form instead of around it. Rerouting loops means changing which edges connect to which, so loops follow the form.
Check the direction of flow
Turn on wireframe in Overlays and look at the subdivided result. Loops should circle around cylinders, such as arms and fingers, and follow the rim of openings such as eyes and mouths. If a loop cuts diagonally across a curved surface, the surface will look faceted between loops.
Use the right tools
| Tool | Shortcut | Use it to |
|---|---|---|
| Loop Cut and Slide | Ctrl+R | Add a new loop where you need more control |
| Knife | K | Draw a custom edge path across faces |
| Connect Vertex Path | J | Join two vertices on the same face |
| Dissolve Edges | Ctrl+X | Remove an edge and merge its faces |
| Rotate Edge | Edge menu | Change which vertices an edge joins |
| Edge Slide | G G | Shift a loop along the surface |
Worked example: a loop that crosses the form
Suppose a limb has a loop that runs diagonally and ends in a pole on the outer curve.
- Select the diagonal edges of the loop and dissolve them with Ctrl+X. The loop disappears and leaves larger faces.
- Use Ctrl+R to add a loop that circles the limb at a right angle to its length.
- Check the faces at the joins. Any n-gon left behind should be split with J.
- Look for the pole you created. If it sits on the curve, repeat the pole steps above.
- Slide the new loop with G G until the silhouette looks smooth.
After dissolving, always clean up stray vertices. Use Mesh > Clean Up > Merge by Distance and select Dissolve Vertices > Limited Dissolve only if you are sure the geometry is flat. Limited Dissolve can remove edges that give you shape.
Check your work
After each fix, verify the result with the audit script from the earlier code example, which counts triangles, n-gons and poles. Watch the counts fall or stay stable. If the pole count rises after a fix, you probably moved a pole, not removed one. That is acceptable, as long as the new pole is in a flat area.
Also check the normals. A flipped face can look like a pinch. Turn on Face Orientation in the overlays. Everything should be blue. If red faces show up, select them and use Mesh > Normals > Recalculate Outside (Shift+N).
Common mistakes
- Fixing the symptom with a Shrinkwrap or Smooth modifier instead of the topology. The artifact returns when you change the mesh.
- Adding extra loops everywhere. More geometry makes the mesh harder to edit and does not fix a pole.
- Moving a pole without checking the other side of a mirrored model. If you use a Mirror modifier, edit only the real half and confirm the center line still merges.
- Treating every triangle and pole as an error. Judge each by where it sits and what the surface does there.
Exercise
A five-sided n-gon sits on a curved part of your mesh. You cannot split it into only quads using its existing vertices. What are two ways to resolve it, and where should any leftover triangle go?
Show answer
Add a vertex on one edge with the Knife tool so the face has an even number of sides, then split it into quads with Connect Vertex Path. Or split it into a quad and a triangle, and then slide the edges so the triangle sits on a flat, low-curvature or hidden area.
Exercise
You dissolve an edge leading into an N-pole and the faces around it merge into an n-gon. What do you do next, and what do you check after?
Show answer
Cut a new edge across the n-gon with the Knife tool or Connect Vertex Path so that it becomes quads, which moves the pole to a new position. Then check that the new pole sits in a flat area, and re-run the audit script to confirm the n-gon count is zero.