Sub topic 8
A non-destructive cutter workflow
This chapter assumes you can add and reorder modifiers, switch between Object Mode and Edit Mode, and apply scale with Ctrl+A. You should also know the basics of the Boolean modifier from the previous chapters: its operations, its operand, and the Exact and Fast solvers. Here you will put those parts together into a repeatable way of cutting, so you can change a cut at any point before you commit to it.
Why use a cutter object
A boolean needs two meshes: the target, which receives the cut, and the operand, which defines the shape of the cut. In a non-destructive workflow the operand is a separate object called the cutter. The Boolean modifier on the target reads the cutter's current shape and position every time the scene updates.
This gives you three things:
- Moving, scaling or rotating the cutter changes the hole immediately.
- Editing the cutter's mesh changes the hole. You can bevel it, array it or swap it for a different shape.
- Disabling the modifier (the monitor icon in the modifier header) brings back the uncut target.
The target's own mesh data is not changed until you apply the modifier. Until then you can undo any decision by changing the modifier or the cutter.
Setting up the cutter
Follow these steps for a first cut.
- Apply scale (Ctrl+A, then Scale) on both objects. A non-uniform scale on either object distorts the cut and any bevels you add later.
- Check that the cutter is a closed mesh. The Exact solver relies on a clear inside and outside, so a cutter with holes or flipped normals gives unreliable results.
- Select the target and add a Boolean modifier from the Modifiers tab.
- Set Operation to Difference, Operand Type to Object, and pick the cutter in the Object field.
- Select the cutter. In Object Properties, open Viewport Display and set Display As to Wire or Bounds. Turn off Renders under Visibility, or use the cutter's
hide_renderflag, so the cutter never shows in a final image.
Use Wire when you need to see the cutter's exact shape while you edit it. Use Bounds when the cutter is dense and the wireframe is distracting.
Hide the cutter with the eye icon or H if you like, but do not turn off the monitor icon (Disable in Viewports). A cutter that is disabled in viewports is no longer evaluated, so the boolean stops working.
Make the cutter overshoot
When a cutter's face lies exactly in the same plane as a face on the target, you get coplanar faces. The solver cannot decide which side of that plane is inside, so you see flickering, stray slivers or missing faces. The simplest fix is to make the cutter extend past the target on every side where it should cut through.
For a through-hole, the cutter should be longer than the target's thickness. For a pocket, only the open end should overshoot. The closed end sits where you want the floor.
Scripting the setup
The snippet below builds a cube target and a cylinder cutter, wires them together and keeps the cutter attached to the target. You can run it in the Scripting workspace.
import bpy
bpy.ops.mesh.primitive_cube_add(size=2)
target = bpy.context.active_object
target.name = "Target"
bpy.ops.mesh.primitive_cylinder_add(radius=0.4, depth=3)
cutter = bpy.context.active_object
cutter.name = "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 = True
cutter.parent = target
cutter.matrix_parent_inverse = target.matrix_world.inverted()The cylinder is 3 units deep and the cube is 2 units tall, so the cutter overshoots by half a unit at each end. The last two lines parent the cutter to the target. Setting matrix_parent_inverse stops the cutter from jumping when the parent is assigned.
Keeping cutter and target together
If you move the target later, an unparented cutter stays behind and the hole moves relative to the target. Parenting the cutter to the target (Ctrl+P, Object, with the cutter selected and the target active) means the two travel as one. The cutter is still free to move relative to the target, so you can still adjust the hole.
Parenting is also tidy for bookkeeping. The outliner shows each cutter under the object it belongs to, and deleting the target by mistake does not leave orphan cutters in the scene unnoticed.
Using several cutters
You have two main options for more than one cut.
- One modifier per cutter. Add one Boolean modifier for each cutter. Each is evaluated in stack order, and you can disable them one at a time. This is the most flexible, but a long stack gets slow on dense meshes.
- Collection operand. Set Operand Type to Collection and choose a collection that holds all the cutters. Anything you add to that collection is picked up automatically. This is the better choice when you have many similar cutters, such as vent slots.
You can also put modifiers on the cutter itself. An Array modifier on a single cylinder cutter produces a row of holes, and the target's Boolean modifier reads the arrayed result. Changing the array count changes the number of holes. This works because the boolean uses the cutter's evaluated shape, modifiers included.
| Approach | Best for | Drawback |
|---|---|---|
| One modifier per cutter | A few unique cuts that you want to toggle separately | Stack grows, and each Exact evaluation adds time |
| Collection operand | Many cutters of the same kind | You cannot toggle a single cutter without moving it out of the collection |
| Modifiers on the cutter | Repeated patterns | Cutter must stay a closed mesh after its modifiers run |
Modifier order on the target
Modifiers run from the top of the stack to the bottom, so order changes the result. A Bevel modifier placed above the Boolean bevels the target before the cut, so the new hole has sharp edges. A Bevel placed below bevels the cut edges too, which is usually what you want for a hole in hard-surface work. A Subdivision Surface modifier above a Boolean subdivides the original shape and then cuts the smoothed result, which can give very dense geometry. Putting it below usually behaves better.
Applying the result
Apply only when the design is settled. Hover over the modifier and press Ctrl+A, or use the dropdown arrow in the modifier header and choose Apply. This writes the cut into the target's mesh, and the change cannot be adjusted afterwards without undoing it.
Apply from the top of the stack. If you apply a modifier that has others above it, Blender warns that the result may differ because those earlier modifiers are skipped. Apply or remove the modifiers above it first.
In a script, run the operator with an explicit context override so it targets the right object, then remove the cutter.
import bpy
target = bpy.data.objects["Target"]
cutter = bpy.data.objects["Cutter"]
with bpy.context.temp_override(object=target, active_object=target):
bpy.ops.object.modifier_apply(modifier="Boolean")
bpy.data.objects.remove(cutter, do_unlink=True)If you might need the cutter again, do not delete it. Move it to a hidden collection instead. Then you can re-create the cut from a saved copy of the file or a duplicate of the target.
Common problems in this workflow
- The cut does nothing. Check that the cutter is set in the Object field, that the modifier is enabled in the viewport, and that the cutter is not disabled in viewports.
- The hole looks like a ghost or has stray faces. Look for coplanar faces and extend the cutter past the target.
- The result is inside out or filled. Recalculate the cutter's normals in Edit Mode (Shift+N) and check that it has no open edges.
- The cut is distorted. Apply scale on both objects, and check the cutter's rotation.
- Viewport slows after several cuts. Switch some cutters to the Fast solver while you design, then switch to Exact before you apply.
Exercise
You added a cylinder cutter to cut a through-hole in a 2-unit-thick plate, but the hole shows flickering faces at the top of the plate. The cylinder is exactly 2 units deep and centred on the plate. What is the cause, and how do you fix it?
Show answer
The cylinder's end caps lie in the same planes as the plate's top and bottom faces, so they are coplanar and the solver cannot tell which side is inside. Make the cutter deeper than the plate (for example, 3 units deep, centred) so that both end caps sit outside the plate.
Exercise
A target has a Boolean modifier above a Bevel modifier. The edges of the new hole are sharp, though the outer edges are bevelled. How do you make the hole edges bevelled too?
Show answer
Move the Bevel modifier below the Boolean in the stack. Modifiers run top to bottom, so the Bevel then runs on the mesh that already contains the cut and affects the hole's edges.
Exercise
Why must you keep the cutter visible to the modifier system (not disabled in viewports) while you use the workflow, even though you hide it in the render?
Show answer
The Boolean modifier reads the cutter's evaluated shape. A cutter disabled in viewports is not evaluated, so the cut stops working. Use the eye icon (hide) and the render visibility setting (hide_render) instead. They hide the object without removing it from evaluation.