Sub topic 2
Editing Vertices, Edges and Faces
This chapter assumes Blender 4.x, the ability to add and move a primitive mesh in Object Mode, and a working idea of vertices, edges and faces. It covers Edit Mode, the extrude, inset and loop cut tools, the Mirror and Decimate modifiers, and flat shading.
Editing vertices, edges and faces
Select an object and press Tab to enter Edit Mode. Press 1, 2 or 3 to switch between vertex, edge and face selection. Select parts of the mesh, then press G, R or S to move, rotate or scale them.
Shaping with extrude, inset and loop cut
- E extrudes selected faces, creating new geometry that continues outward from them.
- I insets a face, creating a smaller face inside its border.
- Ctrl+R adds a loop cut across a ring of edges. Click to place it, then right-click to cancel the slide.
Mirror and Decimate modifiers
The Mirror modifier models one half of a symmetric object and reflects it across an axis. The Decimate modifier reduces the face count. Modifiers run in the order they appear in the stack, so add Mirror first.
import bpy
obj = bpy.context.active_object
# Mirror across the X axis
mirror = obj.modifiers.new(name="Mirror", type='MIRROR')
mirror.use_axis[0] = True
# Keep roughly half of the faces
decimate = obj.modifiers.new(name="Decimate", type='DECIMATE')
decimate.ratio = 0.5> Note: Apply modifiers in Object Mode with Ctrl+A before exporting, so the mesh data matches what you see.
Flat shading for faceted looks
Flat shading gives each face one uniform shade, which makes the facets visible. In Object Mode, choose Object > Shade Flat. The script below does the same thing.
import bpy
obj = bpy.context.active_object
for poly in obj.data.polygons:
poly.use_smooth = False
obj.data.update()Exercise
You extrude a cube's top face, then decide the shape should be symmetric across the X axis. Should you add a Mirror modifier before or after the Decimate modifier, and why?
Show answer
Add Mirror first. Modifiers run in stack order, so Mirror creates the full symmetric mesh before Decimate reduces its faces. Decimate applied first could remove detail that the mirrored half needs.