Sub topic 14
Restoring clean shading after a boolean
This chapter assumes you can switch between Object Mode and Edit Mode and add and apply modifiers. It also assumes you know what face normals are and have run a Boolean modifier with the Exact solver. It covers Blender 4.1 and later, where the old Auto Smooth checkbox no longer exists.
Why shading breaks after a boolean
A boolean can leave the geometry correct while the surface still looks wrong. Typical symptoms:
- Dark smears or gradients across a flat face.
- Creases that disappear where the cut meets the original surface.
- Faces that stay faceted while the rest of the object looks smooth, or the reverse.
- Black or patchy faces.
These symptoms come from how Blender calculates shading. Each face has a flag that says smooth or flat. On a smooth face, Blender interpolates a normal at each corner from the faces that share that vertex. The Exact solver cuts new edges and faces across your mesh, so it produces long thin triangles, large n-gons and vertices shared by faces of very different sizes. Interpolating across that irregular layout gives the smears.
The Boolean modifier also builds its new faces from two sources. Faces created along the cut take their smooth or flat flag from the operand (the cutter). Faces that survive from the target keep their own flag. A smooth target cut by a flat-shaded cutter therefore ends up with mixed shading.
Step 1: rule out normal problems first
Check orientation before you touch smoothing settings. Wrong orientation can look like a shading problem, and no smoothing setting fixes it.
- Enable Face Orientation in the Viewport Overlays. Blue is outward and red is inward.
- If any red faces appear on a closed object, go to Edit Mode, select all, and use Mesh > Normals > Recalculate Outside (Shift+N).
- If a cutter was imported or mirrored with negative scale, apply its scale first. Negative scale flips the normals.
If the object is still dark in places after the faces are all blue, the cause is smoothing. Continue below.
Step 2: make the shading flags consistent
Start from a known state. In Object Mode, select the object and choose Object > Shade Smooth, or Object > Shade Flat if you want a hard-surface look. This sets the flag on every face, so the cutter's flat faces and the target's smooth faces end up the same.
The hard edges are what make the result look right. Smooth shading across a 90-degree corner produces the dark smear, so you need a rule for which edges stay sharp. There are two common rules.
Rule A: sharpen by angle
Object > Shade Smooth by Angle (Blender 4.1 and later) smooths every face. It then marks each edge sharp when the angle between its two faces is larger than the angle you set. A value of 30 degrees works for most mechanical shapes. It is a one-time operation. The sharp marks are stored on the mesh, and you can edit them afterwards.
Object > Shade Auto Smooth does the same thing non-destructively. It adds a Smooth by Angle modifier, which is a geometry nodes asset, to the modifier stack. Use it when the geometry may still change.
Rule B: mark sharp edges by hand
In Edit Mode, select edges and choose Edge > Mark Sharp. Use Clear Sharp to remove the mark. This suits organic shapes where an angle threshold would catch the wrong edges. You can also combine the two. Run Shade Smooth by Angle, then adjust individual edges.
| Situation | Better choice |
|---|---|
| Hard-surface part, geometry still changing | Shade Auto Smooth (modifier) |
| Final mesh, you want a clean stack | Shade Smooth by Angle |
| Organic shape with a few deliberate creases | Mark Sharp by hand |
| Large flat faces with smears next to small faces | Weighted Normal modifier (see below) |
Step 3: fix remaining smears with Weighted Normal
On large flat faces with a few small faces beside them, smooth interpolation pulls the small faces' normals into the large face. This gives the typical gradient across a flat panel. The Weighted Normal modifier fixes it by weighting each vertex normal by face area, so the big face dominates.
- Add a Weighted Normal modifier below the Boolean and any Bevel.
- Leave the Mode on Face Area (the default).
- Turn on Keep Sharp if you marked sharp edges, so those edges still break the shading.
- Keep the object shaded smooth. Weighted Normal only changes the stored normals. It does not change the smooth or flat flags.
Weighted Normal gives its best results on beveled hard-surface objects. If a flat panel is still dirty, compare how the triangles are laid out there. A long thin triangle fan from the boolean often explains it, and the next section addresses that.
Step 4: remove the cause when the topology is bad
If smoothing settings cannot fix an area, the topology is the cause. Go to Edit Mode and look at the affected face. You will usually find one of three things.
- A large n-gon with many vertices on its border. Smooth shading handles n-gons poorly. Select the face and use Face > Triangulate Faces (Ctrl+T), or cut it into quads with the Knife tool.
- Thin slivers or a fan of triangles from one vertex. Select the area and use Mesh > Clean Up > Limited Dissolve with a small angle limit such as 1 degree. Coplanar slivers merge into larger faces.
- Vertices that nearly overlap. Run Merge by Distance (M > By Distance). Tiny edges produce unstable normals.
Apply the Boolean modifier before any of these steps. Edit Mode tools do not act on the modifier's output.
Step 5: clear custom normals that fight you
A mesh that was previously edited with custom split normals (for example imported from another program) may ignore the new settings. Open Object Data Properties > Geometry Data and click Clear Custom Split Normals Data. Then run Shade Smooth by Angle again.
The decision flow
Doing it with Python
You can run the smoothing step from a script, for example at the end of a scripted boolean and cleanup pass. This sketch selects the active object and applies Shade Smooth by Angle. It needs Blender 4.1 or later and must run in Object Mode.
import math
import bpy
obj = bpy.context.active_object
# The operator acts on the selected objects.
bpy.ops.object.select_all(action='DESELECT')
obj.select_set(True)
bpy.context.view_layer.objects.active = obj
bpy.ops.object.shade_smooth_by_angle(
angle=math.radians(30),
keep_sharp_edges=False,
)Setting keep_sharp_edges=False discards any sharp marks you made earlier. Pass True if you want to keep them and add the angle-based ones on top.
Common mistakes
- Fixing shading before fixing normals. Always check Face Orientation first.
- Shade Smooth with no sharp edges. Every corner gets blended, and the object looks soft and dirty. Add an angle rule.
- Wrong modifier order. Smooth by Angle or Weighted Normal placed before the Boolean is calculated on the old surface.
- Expecting Weighted Normal to smooth anything. It only changes normals on faces that are already smooth.
- Using a high angle limit. Above roughly 60 degrees, real corners get smoothed over and vanish.
Exercise
You cut a hole in a smooth-shaded cylinder with the Exact solver and applied the modifier. The hole's walls are flat-shaded and the rim has a dark smear. Face Orientation shows all faces blue. List the steps you would take, in order.
Show answer
Because Face Orientation is all blue, the normals are fine. Select the object and run Object > Shade Smooth by Angle at about 30 degrees, so every face is smooth and only the sharp corners such as the hole's rim stay creased. If a smear remains on a flat area, add a Weighted Normal modifier after the other modifiers and enable Keep Sharp. If it still looks wrong, go to Edit Mode and check the rim for n-gons or thin triangles. Use Triangulate or Limited Dissolve, and run Merge by Distance for near-duplicate vertices.
Exercise
Why must a Smooth by Angle modifier come after the Boolean modifier in the stack?
Show answer
Modifiers run top to bottom. A Smooth by Angle modifier placed above the Boolean works on the geometry before the cut. The faces the boolean creates are added afterwards and keep the smooth or flat flag they got from the cutter, so the shading stays inconsistent. Placed after the Boolean, it sees the final surface and sets the flags on all faces.