Sub topic 1
Edit Mode and the parts of a mesh
Extrude, inset, and loop cut all work by adding or rearranging the parts of a mesh. This chapter covers what those parts are, what Edit Mode lets you do with them, and how to check what you have selected before you run a tool.
Prerequisites
This chapter assumes you can already do the following:
- Orbit, pan, and zoom the 3D viewport.
- Switch between Object Mode and Edit Mode with Tab.
- Select objects and use the basic transform keys G (move), R (rotate), and S (scale).
- Recognize a vertex, an edge, and a face when you see one.
You don't need any modeling experience beyond that. The Python example near the end is optional, but it runs in Blender's Scripting workspace as written.
What Edit Mode changes
Blender separates an object into two layers. The object layer holds the location, rotation, and scale of the whole thing. The data layer holds the mesh itself, which is a list of points in space and the connections between them.
Object Mode edits the first layer. Edit Mode edits the second. When you press Tab on a mesh object, Blender lets you move individual parts of the mesh and add or delete them. Extrude, inset, and loop cut exist only in Edit Mode because they change the mesh data.
This split has a few practical consequences:
- Scaling an object in Object Mode does not change its vertex coordinates. It changes the object's scale value. Tools that depend on real sizes, such as numeric inset thickness, can then behave unexpectedly. Apply the scale with Ctrl+A, then choose Scale, when you want the mesh data to match what you see.
- Linked duplicates made with Alt+D share one mesh. An Edit Mode change on one copy appears on all of them. Plain Shift+D duplicates get their own copy of the data.
- Since Blender 2.8, if you select several mesh objects and press Tab, they all enter Edit Mode together. Tools affect the selected parts of every object in the session.
The three kinds of mesh part
A mesh is built from three kinds of component. Each one is defined by the one below it.
| Component | What it is | Defined by | Typical use |
|---|---|---|---|
| Vertex | A single point with an X, Y, Z position | Its coordinates | Pinpoint adjustments, merging |
| Edge | A straight line joining two vertices | Two vertices | Defining outlines and loops |
| Face | A flat surface bounded by three or more edges | A closed ring of edges | The visible surface that renders |
Only faces render. An edge without a face is invisible in a render, and so is a vertex without an edge. Blender still lets you keep such loose geometry, and it will appear in Edit Mode. Wire-only edges are handy for curves or as a starting point for extruding, but stray loose vertices are usually mistakes.
Faces and their normals
Each face has a normal, a direction pointing out of its front side. Blender uses it for shading, for the direction of an Extrude Along Normals move, and for telling inside from outside. You can see normals by enabling them in the Overlays popover for Edit Mode. You can also turn on Face Orientation in the Viewport Overlays: blue is the front side and red is the back. A closed object that shows red on the outside has flipped normals. A later chapter covers how to fix that.
Triangles, quads, and n-gons
A face can have any number of sides, and the names are:
- A triangle has three sides.
- A quad has four sides.
- An n-gon has five or more sides.
Quads are the preferred building block for most modeling because loops of edges can run through them cleanly. The next chapters on topology and loop cut explain why.
Reading the mesh with the statistics overlay
Before using any tool, it helps to know how many parts you have and how many are selected. Open the Overlays popover in the viewport header and turn on Statistics. In Edit Mode the display shows selected and total counts for vertices, edges, faces, and triangles.
A default cube has 8 vertices, 12 edges, and 6 faces. The statistics show it as Vertices 0/8, Edges 0/12, Faces 0/6 when nothing is selected. Select everything with A and it reads 8/8, 12/12, 6/6.
Make a habit of checking these numbers after a tool runs. A count that is higher than you expected is the quickest sign of accidental duplicate geometry.
Moving around Edit Mode
A few controls come up constantly and are worth learning now:
- Press A to select all, Alt+A to deselect all, and Ctrl+I to invert the selection.
- Press H to hide the selected parts and Alt+H to reveal them. Hidden geometry is still part of the mesh. It is simply out of the way, and it will not be affected by tools until you reveal it.
- Press X or Delete to open the delete menu. It offers Vertices, Edges, Faces, and other choices. Choosing Vertices removes the selected points and any edges or faces that depended on them. Choosing Faces removes only the faces and leaves edges and vertices behind.
- Press Alt+Z to toggle X-ray. In the default solid shading, box select and click select only reach parts that are visible from your view. X-ray lets you select the hidden back side too.
A common surprise is that a selection which looks complete from the front misses the back. With X-ray off, the statistics overlay will show a lower count than you expected. Turn on X-ray and select again.
Selection is stored on the parts
Blender stores a select flag on each vertex, edge, and face. The selection mode, which the next chapter covers, only decides how clicks and box selections set those flags. The mode keys are 1 for vertex, 2 for edge, and 3 for face in Edit Mode. Switching modes converts the current selection where it can. A face is selected only if all of its vertices are selected.
Inspecting the mesh with Python
The Python API reaches the same data you see in the viewport. The bmesh module gives an editable view of the Edit Mode mesh. The script below prints the totals and the selected counts, and it checks a useful identity.
import bpy
import bmesh
obj = bpy.context.edit_object
if obj is None or obj.type != 'MESH':
raise RuntimeError("Enter Edit Mode on a mesh object first.")
bm = bmesh.from_edit_mesh(obj.data)
n_verts = len(bm.verts)
n_edges = len(bm.edges)
n_faces = len(bm.faces)
sel_verts = sum(1 for v in bm.verts if v.select)
sel_edges = sum(1 for e in bm.edges if e.select)
sel_faces = sum(1 for f in bm.faces if f.select)
print(f"Vertices: {sel_verts}/{n_verts}")
print(f"Edges: {sel_edges}/{n_edges}")
print(f"Faces: {sel_faces}/{n_faces}")
# Euler characteristic: 2 for a closed shape with no holes, such as a cube.
print("V - E + F =", n_verts - n_edges + n_faces)
# Count faces by number of sides.
tris = sum(1 for f in bm.faces if len(f.verts) == 3)
quads = sum(1 for f in bm.faces if len(f.verts) == 4)
ngons = sum(1 for f in bm.faces if len(f.verts) > 4)
print(f"Triangles: {tris}, quads: {quads}, n-gons: {ngons}")Run it from the Text Editor in the Scripting workspace, with the mesh object in Edit Mode. On the default cube, it prints 8, 12, and 6 for the totals, a Euler value of 2, and 6 quads. The same pattern, reading bm.verts, bm.edges, and bm.faces, is what later chapters use to script extrude and inset.
The Euler value is a quick sanity check. For a closed surface without holes, V − E + F equals 2. A different result does not always mean a mistake, because a torus gives 0 and open meshes give other values. Still, a cube that suddenly reports a different number tells you something has been added or removed.
Common errors to watch for
- Working in the wrong mode. If Tab does nothing useful, check that the active object is a mesh. Cameras and lights have no Edit Mode in this sense.
- Editing a shared mesh. If a change shows up on a second object, the two objects share data. Use Make Single User, then Object Data, to separate them.
- Hidden parts. If a tool seems to skip geometry, press Alt+H and look again.
- Scaled objects. If sizes look different from what you typed, check the object's scale in the sidebar (N) and apply it if needed.
Exercise
A default cube in Edit Mode shows Vertices 8/8, Edges 12/12, Faces 6/6 with everything selected. You press H, then check the statistics overlay. What would you expect to happen to the counts, and does the hidden geometry still belong to the mesh?
Show answer
The selected parts are hidden, so the overlay's totals no longer count them and the display shows 0 selected of 0 visible, as hidden parts drop out of the counts. The hidden geometry still belongs to the mesh and comes back with Alt+H. It is not deleted, but tools ignore it while it is hidden.
Exercise
You select all faces of an Edit Mode cube from the front view with X-ray off, and the statistics show fewer than 6 faces selected. Why, and how do you fix it?
Show answer
Without X-ray, click and box selection only reach parts that are visible from your viewpoint, so the back faces are skipped. Press Alt+Z to turn on X-ray, or press A to select everything. Then confirm the statistics read 6/6.