Sub topic 4
Edit Mode: Working with Mesh Geometry
Assume you can navigate the 3D Viewport, select objects, and use basic transforms. You also know that a mesh consists of vertices, edges, and faces.
What Edit Mode Changes
A Blender mesh has two related parts:
- An object is the scene item that has a location, rotation, and scale.
- Mesh data is the geometry stored inside that object: its vertices, edges, and faces.
Object Mode works with the object as a whole. Edit Mode changes the mesh data. Moving a vertex in Edit Mode changes the shape of the mesh without moving the object's origin or changing its object-level location.
Select a mesh object and press Tab to enter Edit Mode. The object usually appears with its editable components highlighted. Press Tab again to return to Object Mode.
In Edit Mode, tools such as Move, Rotate, and Scale operate on selected mesh components. For example, selecting a face and pressing G moves that face and may reshape neighboring faces.
Selecting Mesh Components
Edit Mode provides three primary selection modes:
| Selection mode | Selects | Typical use |
|---|---|---|
| Vertex | Points where edges meet | Adjusting corners and proportions |
| Edge | Lines between vertices | Creating loops or changing borders |
| Face | Surfaces enclosed by edges | Extruding regions or shaping broad areas |
Use the icons in the 3D Viewport header, or press:
1for Vertex Select2for Edge Select3for Face Select
These shortcuts require the number row, not always the numeric keypad. In some keymap configurations, you may need to use the visible selection buttons instead.
A common modeling sequence is to select a face, press E to extrude it, and move the new region. Extrusion creates connected geometry from the selected vertices, edges, or faces. It is different from simply moving a face because it adds new mesh elements.
Editing a Mesh in Python
While a mesh is in Edit Mode, Blender keeps the editable geometry in an edit-mode representation. For reliable Python edits, use the bmesh module and then update the edit mesh.
import bpy
import bmesh
obj = bpy.context.edit_object
if obj is not None and obj.type == 'MESH':
bm = bmesh.from_edit_mesh(obj.data)
for vert in bm.verts:
if vert.select:
vert.co.z += 1.0
bmesh.update_edit_mesh(obj.data)
else:
print("Select a mesh and enter Edit Mode first.")This script moves every selected vertex upward by one Blender unit. bmesh.from_edit_mesh() accesses the geometry currently being edited. bmesh.update_edit_mesh() tells Blender to refresh the viewport and mesh data after the change.
Common Edit Mode Errors
If a transform appears to do nothing, check whether the intended vertices, edges, or faces are selected. Also check the selection mode. A face may be selected when you intended to select a vertex.
Remember that Edit Mode is local to mesh geometry. Moving all vertices can visually move the mesh, but it does not change the object's location. The object's origin remains where it was. This distinction matters when you later use modifiers, parenting, snapping, or object-level transforms.
Exercise
You enter Edit Mode, select one face, and press G. What changes, and what does not?
Show answer
The selected face and any connected geometry affected by the move change shape. The object's location, rotation, scale, and origin do not change.