Sub topic 5
The Boolean Modifier at a Glance
Assume you can navigate Blender, switch between Object Mode and Edit Mode, transform mesh components, and add or apply modifiers. This chapter introduces the Boolean modifier's working model. Later chapters examine failed cuts and detailed mesh repair.
A Boolean modifier creates a new mesh result from two objects:
- The target is the object that receives the modifier.
- The operand is the second object used to affect the target.
- The operation defines how the two volumes combine.
- The solver calculates the resulting surface.
The modifier evaluates the target and operand without immediately changing the original mesh data. This makes it useful for non-destructive modelling.
Add and configure the modifier
Select the target object, open the Modifiers tab, and choose Add Modifier, Boolean. Set the operand with the eyedropper or the Object field. The operand normally needs to be a closed volume, such as a cube, cylinder, or carefully prepared custom mesh.
The operation controls the geometric relationship:
| Operation | Result |
|---|---|
| Difference | Removes the operand's volume from the target |
| Union | Combines the volumes into one result |
| Intersect | Keeps only the volume shared by both objects |
For example, Difference can cut a cylindrical hole through a box. The cylinder is the cutter, and the box is the target.
A Boolean modifier appears in the modifier stack. Its position matters because Blender evaluates modifiers from top to bottom. A Bevel above the Boolean changes the cutter result before later modifiers process it. A Bevel below the Boolean rounds the edges created by the cut.
A scripted Boolean setup
The following script adds a Boolean modifier to the active object. It expects an object named Cutter to exist in the scene.
import bpy
target = bpy.context.active_object
cutter = bpy.data.objects.get("Cutter")
if target is None:
raise RuntimeError("Select a target object first.")
if cutter is None:
raise RuntimeError('Create an object named "Cutter" first.')
if target == cutter:
raise RuntimeError("The target and cutter must be different objects.")
modifier = target.modifiers.new(name="Boolean", type="BOOLEAN")
modifier.operation = "DIFFERENCE"
modifier.operand_type = "OBJECT"
modifier.object = cutter
modifier.solver = "EXACT"
cutter.display_type = "WIRE"
cutter.hide_render = Truedisplay_type = "WIRE" keeps the cutter visible as a guide in the viewport. hide_render = True prevents the cutter from appearing in the final render. The cutter still participates in the Boolean calculation.
What to check before trusting the result
The target and cutter should have applied object scale and sensible transforms. Overlapping surfaces that are exactly coplanar can produce ambiguous results. Open borders, internal faces, duplicate vertices, flipped normals, and self-intersections can also cause holes or unexpected fragments.
Inspect the result in Solid mode and wireframe mode. If the shape looks correct, keep the modifier for further editing. Apply it only when you need permanent mesh data or need to continue with direct mesh editing.
Exercise
Which object receives the Boolean modifier, and what is the role of the operand?
Show answer
The target receives the modifier. The operand is the cutter or second volume that the chosen operation uses to calculate the target's result.