Sub topic 5
The Boolean modifier at a glance
What this chapter assumes
This chapter assumes you can navigate the 3D viewport, switch between Object Mode and Edit Mode, and add and apply modifiers. It also assumes you have read the earlier chapters on mesh anatomy, normals, manifold meshes and preparing objects (applied scale, clean base meshes). Here you get a first look at the Boolean modifier: where it lives, what each setting does, and how the pieces fit together. Later chapters go deeper on the three operations, the solvers, the cutter workflow and troubleshooting.
What the Boolean modifier does
A Boolean modifier combines two shapes using set logic. The object that owns the modifier is the target. The second shape is the operand. Blender tests where the two surfaces cross, then keeps or discards the regions of each mesh according to the chosen operation.
The modifier is non-destructive until you apply it. The target's mesh data is not changed while the modifier sits in the stack. Blender recomputes the result whenever either object moves, so you can slide the operand around and watch the cut update.
The modifier reads volume. It decides what is "inside" a mesh from the direction of its face normals and from its closed surface. That is why the earlier chapters on normals and manifold meshes matter. A mesh with holes or flipped faces gives the modifier no reliable inside and outside, and the result breaks.
Adding the modifier
- Select the target object.
- Open the Modifiers tab in the Properties editor (the wrench icon).
- Choose Add Modifier, then Generate, then Boolean.
The panel shows the following controls.
| Control | Purpose |
|---|---|
| Operation buttons | Intersect, Union or Difference. |
| Operand Type | **Object** uses a single object. **Collection** uses every object in a collection. |
| Object or Collection field | Picks the operand. |
| Solver | **Fast** or **Exact**. |
| Solver Options | Extra settings that depend on the solver. |
Difference is the default operation. It subtracts the operand from the target.
The three operations in brief
The next chapter treats these in detail. For now, keep this mental model.
- Difference removes the volume of the operand from the target. This is the usual choice for cutting holes, slots and windows.
- Union merges both volumes into one outer shell. Surfaces that end up inside the combined shape are removed.
- Intersect keeps only the volume the two shapes share.
Difference is the only operation where the order of the two objects matters. Subtracting A from B gives a different result from subtracting B from A. Union and Intersect give the same shape either way.
Operand type: object or collection
With Object, you pick one mesh. With Collection, Blender uses every mesh in a collection as the operand. The collection option is useful when you need many cutters, such as a row of vent slots or a set of screw holes, without stacking one modifier per cutter.
Collection operands have a few details to know:
- The solver treats the collection's objects together, so overlapping cutters inside one collection are handled as a group.
- Moving an object into or out of the collection changes the result immediately.
- Hiding the collection in the viewport does not stop it from cutting. The modifier reads the objects in the collection no matter whether they are visible. Disabling the modifier does.
Solvers at a glance
The Solver setting decides how Blender finds the intersections.
| Solver | Strength | Weakness |
|---|---|---|
| Exact | Handles complex and overlapping geometry and gives reliable results. It also supports non-manifold input to a degree. | Slower on dense meshes. |
| Fast | Quick, which suits interactive use on light meshes. | Fails on coplanar faces and overlapping cutters, and needs clean input. |
Choose Exact by default and switch to Fast only when speed is the issue and the geometry is simple. A later chapter covers the options each solver exposes.
A first cut, step by step
The script below builds the same setup you would make by hand. It adds a Boolean modifier set to Difference with the Exact solver, uses an object named "Cutter" as the operand, then makes the cutter visible as wireframe in the viewport and hidden from renders.
import bpy
target = bpy.context.active_object
cutter = bpy.data.objects["Cutter"]
mod = target.modifiers.new(name="Boolean", type='BOOLEAN')
mod.operation = 'DIFFERENCE'
mod.operand_type = 'OBJECT'
mod.object = cutter
mod.solver = 'EXACT'
cutter.display_type = 'WIRE'
cutter.hide_render = TrueTo run it, create a cube and a second object named "Cutter" that overlaps it, make the cube active, and run the script from the Scripting workspace. The cube now shows a cut where the cutter overlaps. The cutter stays in the scene as a wireframe.
The same steps by hand:
- Add the target and a second mesh. Rename the second mesh "Cutter".
- Position the cutter so it passes through the target.
- Add the Boolean modifier to the target and pick the cutter as the operand.
- Set the display type of the cutter to Wire (Object properties, Viewport Display) and turn off its render visibility.
Where the modifier sits in the stack
Modifiers run from top to bottom. The Boolean modifier receives the mesh produced by every modifier above it. This has practical effects.
- A Bevel modifier placed before a Boolean bevels the original edges, then the cut is made. The cut edges stay sharp.
- A Bevel modifier placed after a Boolean bevels the new edges that the cut created as well.
- A Mirror modifier above a Boolean means the cutter acts on both halves, which can produce surprises if the cutter crosses the mirror plane.
- A Subdivision Surface modifier above a Boolean makes the Boolean work on the smoothed, denser mesh. This is slow and rarely what you want.
Only the target's modifiers affect the target mesh. The operand is read in its evaluated form, so modifiers on the cutter also take part.
Common first-time mistakes
- Nothing happens. The operand field is empty, the modifier's viewport display is off, or the operand does not actually overlap the target.
- The target disappears or fills in. The operand's normals point inward, or the target is not closed. Check normals and manifold status first.
- The cut is in the wrong place. Unapplied scale on the target or the cutter distorts the result. Apply scale with Ctrl+A before cutting.
- The cutter is still visible in renders. The cutter is an ordinary object. Hide it from renders, or the cut-out shape appears in your final image.
- The viewport is slow. The Exact solver is working on a dense mesh. Lower the density of the operand, or switch to Fast while you block out the shape.
Applying the modifier
When you are happy with the cut, apply the modifier so the result becomes real mesh data. The script below applies the modifier named "Boolean" on the target using a context override.
import bpy
target = bpy.context.active_object
with bpy.context.temp_override(object=target, active_object=target):
bpy.ops.object.modifier_apply(modifier="Boolean")After applying, delete or hide the cutter if you no longer need it. The new surface may carry stray vertices, n-gons or bad shading, which the cleanup chapters address.
Summary of the working model
- The target owns the modifier. The operand is the second shape.
- The result depends on a clean, closed, correctly oriented mesh.
- Exact is the safe default. Fast is for simple, quick work.
- Stack order changes what the Boolean sees.
- Keep the cutter alive until you are sure, then apply.
Exercise
You add a Boolean modifier set to Difference, and the cut appears in the wrong place and looks stretched. The cutter was scaled non-uniformly in Object Mode and the scale was never applied. What should you do, and why does it matter?
Show answer
Apply the scale on the affected objects (Object menu, Apply, Scale, or Ctrl+A then Scale). Unapplied non-uniform scale makes the object's local geometry differ from what the viewport shows, so intersections and later operations can behave unexpectedly. After applying scale, the modifier works on the geometry you actually see.
Exercise
A Bevel modifier and a Boolean modifier are both on the target. You want the edges created by the cut to be beveled too. Which modifier must come first in the stack?
Show answer
The Boolean must come first. Modifiers run top to bottom, so the Bevel placed after the Boolean sees the new cut edges and bevels them. Placed before the Boolean, it bevels only the original edges.