Sub topic 6
Poles: valence, where they go and where they hurt
This chapter assumes you can move between Object Mode and Edit Mode, select vertices and edges, and add a Subdivision Surface modifier. It also assumes you know what a quad, a triangle and an n-gon are, and what an edge loop is. Here you will learn to count valence, tell the two kinds of pole apart, and decide where a pole is harmless and where it ruins a surface.
Valence: counting edges at a vertex
The valence of a vertex is the number of edges that meet at it. In a clean grid of quads, every interior vertex has valence 4. Four edges leave the vertex in a cross shape, and two continuous loops pass straight through it.
A pole is any vertex whose valence is not 4. Edge loops cannot pass straight through a pole. Either a loop ends there or it has to turn. Poles are the main tool for changing the direction or density of edge flow, so you cannot avoid them. You can only decide where they go.
| Valence | Name | Typical origin |
|---|---|---|
| 2 | Not a pole in the usual sense | A vertex on a border or a leftover point on a straight edge |
| 3 | E-pole | Three quads meeting at a corner, or a loop that ends |
| 4 | Regular vertex | A normal grid intersection |
| 5 | N-pole | Five edges meeting, often where a loop splits |
| 6 or more | N-pole | Circular fans, such as the tip of a cone |
The name "E-pole" comes from the three edges at the vertex. The name "N-pole" comes from the n-edge fan. Some artists call a 3-valent vertex a "3-pole" and a 5-valent vertex a "5-pole". The numbers carry the meaning, so use whichever names your team uses.
What a pole does under subdivision
Catmull-Clark subdivision, the method behind Blender's Subdivision Surface modifier, adds a new vertex at the center of every face and on every edge. After one level, every face in the mesh is a quad. The new vertices that sit at the center of a face always have valence 4. The old vertices keep their valence.
This is the key fact about poles. Subdivision does not remove them and does not move them to a new place in the topology. A 5-valent vertex in the base mesh is still a 5-valent vertex after one, two or three levels. The surface around it is smooth in the mathematical sense, but it is a special point, called an extraordinary vertex, where the curvature can differ slightly from the regular patches around it.
On a flat or gently curved area, you will not see this. On a tightly curved area, or on an area that is lit with a sharp reflection, the extraordinary vertex can show up as a slight dent or bulge, or as lines in the shading that converge on one point.
Where poles help
A pole is the correct solution in several common situations.
- Changing loop count. A 3-pole and a 5-pole together let you add or remove loops. You can start with a coarse mesh on a flat area and move to a dense mesh where detail is needed.
- Turning a loop. A 5-pole can redirect flow by roughly 90 degrees, which is how you route loops around a shoulder or a corner.
- Capping a radial shape. The center of a cylinder, a finger tip or a pupil needs a vertex where many edges meet. A radial fan of triangles is a bad cap. A small grid of quads with 3-poles at the corners of the grid is a better one.
- Ending a loop. A loop has to end somewhere if you do not want it to run around the entire model.
Where poles hurt
Poles cause trouble when you place them in areas where the surface changes quickly or where the viewer looks closely.
- High curvature. On a sharp bend, such as the front of a knee or the corner of a jaw, the extraordinary vertex pulls the surface into a pinch.
- Strong highlights. Glossy and mirror-like materials reveal tiny changes in the surface normal. A pole in a highlight shows as a star-shaped ripple.
- Deforming areas. A joint that bends will move the pole with it. If the pole sits in the fold, the mesh will crease in an ugly way.
- Combined with n-gons or triangles. A high-valence pole made of triangles gets worse under subdivision, not better. Keep fans of quads.
- Next to another pole. Two poles that sit close together push against each other. The surface in between can wobble.
As a rule of thumb, an N-pole with valence 5 is usually safe in a flat area. A valence of 6 or more is rare in organic models, except at the center of a radial cap. Valence 8 or more should make you stop and ask whether the mesh needs a rebuilt cap.
Moving a pole to a safe place
You can often keep the same face count and the same loops but shift the pole a few edges away. The goal is to put it where the surface is flat and where the camera is least likely to look closely.
- Enter Edit Mode and select the pole vertex.
- Select the edge running to the neighbor you want to move toward.
- Use Vertex > Slide, or the shortcut
Shift+V, to slide the pole along the nearby edge. - To change which vertices form the pole, use Dissolve Edges on an edge next to the pole, then Connect Vertex Path (
Jin the default keymap for connecting selected vertices) to cut a new edge in a better location. - Check the result with the modifier visible in Edit Mode, and rotate the viewport under a strong light to see the shading.
Finding poles with a script
You can ask Blender to count poles for you. The script below runs in Edit Mode and uses the bmesh module to read the valence of every vertex. It then selects the vertices that count as poles, so you can see them in the viewport.
import bpy
import bmesh
obj = bpy.context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
# Deselect everything first
for v in bm.verts:
v.select = False
epoles = []
npoles = []
for v in bm.verts:
valence = len(v.link_edges)
if valence == 3:
epoles.append(v)
elif valence >= 5:
npoles.append(v)
# Select only N-poles so they stand out
for v in npoles:
v.select = True
bm.select_flush_mode()
bmesh.update_edit_mesh(obj.data)
print(f"E-poles: {len(epoles)}, N-poles: {len(npoles)}")A few gotchas apply when you read the numbers.
- Boundary vertices. On an open mesh, vertices along the border have fewer edges. A valence of 3 on a border is normal for a flat grid and does not mean a pole.
- Corners of boxes. The eight corners of a cube each have valence 3. They are E-poles by the count, but they are expected at a box corner and often become soft corners after subdivision.
- Mirrored seams. If you model half a mesh with a Mirror modifier, the center line vertices can show a lower valence in Edit Mode than they have in the final mesh. Count after the mirror is applied, or in a copy.
Common mistakes
- Treating every pole as an error. A model with no poles is almost always a flat sheet or a torus.
- Fixing a pole by adding a triangle. Triangles hide the pole in the base mesh but do not remove the extraordinary vertex.
- Judging by the base mesh only. Always turn the Subdivision Surface modifier on and test with a matcap or a glossy material before you decide a pole is a problem.
- Putting a 5-pole at the apex of a smooth curve. Slide it a few loops back into a flatter region.
Exercises
Exercise
A vertex in a quad mesh has five edges meeting at it. What is its valence, what kind of pole is it, and does one level of Subdivision Surface change its valence?
Show answer
Its valence is 5, so it is an N-pole. Subdivision does not change it. The vertex keeps five edges, so it stays an extraordinary vertex at every level. Only the new vertices created at face centers and edge midpoints are added, and the face-center ones have valence 4.
Exercise
You find a 5-pole on the front of a character's knee, and the glossy render shows a star-shaped ripple around it. Describe two steps to fix it without changing the overall loop layout.
Show answer
First, slide the pole along a nearby edge into a flatter region, such as the thigh above the knee, using Vertex Slide. Second, if sliding is not enough, dissolve the edge next to the pole and reconnect the vertices with Connect Vertex Path so that the 3-pole and 5-pole pair sits in the flat area. Then recheck with the modifier on under a strong light.