Sub topic 1
Vertices, edges and faces: the parts of a mesh
Prerequisites
This chapter assumes you can navigate the 3D viewport, switch between Object Mode and Edit Mode, select and move vertices, edges and faces, and add modifiers from the Properties editor.
Vertices, edges and faces
Every mesh is built from three elements. A vertex is a single point in space. An edge connects two vertices. A face is a flat region bounded by edges. In Edit Mode, you can select each element type separately.
import bpy
obj = bpy.context.active_object
mesh = obj.data
print(len(mesh.vertices), len(mesh.edges), len(mesh.polygons))What the Subdivision Surface modifier does to your base mesh
The Subdivision Surface modifier takes your base mesh and inserts new vertices between the existing ones. It then moves those vertices so the result approaches a smooth curve. The base mesh is a guide, not the final shape. The modifier never guarantees that the smooth result passes through every base vertex, so you shape the result by adjusting the base mesh.
Quads, triangles and n-gons under subdivision
A face with four sides is a quad. A face with three sides is a triangle. A face with more than four sides is an n-gon. Quads subdivide predictably into smaller quads. Triangles and n-gons create irregular patches that can pinch or shade unevenly.
| Face type | Sides | Result under subdivision |
|---|---|---|
| Quad | 4 | Clean, even subdivision |
| Triangle | 3 | Can pinch and shade unevenly |
| N-gon | 5 or more | Irregular, often causes artifacts |
Edge loops and rings: building structure you can control
An edge loop is a chain of edges that runs through quads, passing through the middle of each face. An edge ring is a chain of parallel edges that runs across quads. Loops and rings let you add detail in a controlled way, because each new loop adds a predictable band of geometry.
Exercise:
Exercise
A cube has six quad faces. After you add one edge loop around its middle, how many faces does it have?
Show answer
Ten. The loop cuts each of the four side faces in two, so the four side faces become eight, and the top and bottom faces stay as they were. That gives 8 + 2 = 10.