Sub topic 6
Difference, Union and Intersect
Assume you can navigate the 3D viewport, switch between Object Mode and Edit Mode, select mesh parts, and add modifiers. This chapter uses those skills to combine two mesh objects with Blender’s Boolean modifier.
The three Boolean operations
A Boolean operation calculates a new shape from two objects:
- The target is the object that receives the Boolean modifier.
- The operand, or cutter, is the second object used in the calculation.
- The result depends on the volume occupied by both objects.
| Operation | Result | Typical use |
|---|---|---|
| Difference | Removes the operand’s volume from the target | Cutting a hole or slot |
| Union | Combines overlapping volumes into one result | Joining two solid forms |
| Intersect | Keeps only the volume shared by both objects | Creating an overlap or mask |
The objects should usually be closed, watertight solids. A watertight mesh has no unintended holes, gaps, or open boundary edges. Boolean calculations are less predictable when either object is open or self-intersecting.
Difference: cutting into a target
Difference is the most common operation. Place a cutter so it passes through the target, then set the modifier to Difference. Blender subtracts the cutter’s volume.
For example, place a cylinder through a cube to create a round hole. The cutter must extend fully through the cube. If it stops inside the cube, it creates an internal cavity rather than an opening.
Keep the cutter as a separate object while you work. You can move or resize it without permanently changing the target mesh.
Union: combining volumes
Union keeps the combined outside volume of both objects. The objects should overlap. If they only touch at one face or edge, the result may contain unstable topology or fail to form the connection you expect.
Union is useful for joining a handle to a body or combining rough forms during blockout. It does not automatically produce ideal animation topology. The result can contain large n-gons and irregular edge flow.
Intersect: keeping shared volume
Intersect removes everything except the space shared by the target and operand. If two objects overlap partly, the result is the overlapping region.
This operation is useful for trimming one form to another. Before applying it, check the result from several angles. A small movement can greatly change the remaining volume.
import bpy
target = bpy.context.active_object
cutter = bpy.data.objects.get("Cutter")
if target is None or cutter is None:
raise RuntimeError("Select the target and create an object named Cutter.")
modifier = target.modifiers.new(name="Boolean", type="BOOLEAN")
modifier.operation = "DIFFERENCE" # Use "UNION" or "INTERSECT" for other results.
modifier.operand_type = "OBJECT"
modifier.object = cutter
modifier.solver = "EXACT"The Exact solver is generally safer for overlapping meshes and difficult intersections. The Fast solver can be quicker for simple, clean geometry, but it may produce less reliable results when faces are coplanar or objects contain complex topology.
> callout tip > Do not apply the modifier until you are satisfied with the placement and operation. Keeping it live makes mistakes reversible.
Check the result
After choosing an operation, inspect the mesh in solid and wireframe views. Look for holes, unexpected internal faces, or shading changes. Apply the modifier only when the result is ready for editing as ordinary mesh data.
Exercise
A cylinder passes through a cube, and you want an open round hole. Which operation should you use, and where should the cylinder extend?
Show answer
Use Difference. Extend the cylinder completely through the cube so its volume is subtracted from both sides.