Sub topic 2
Face normals and why orientation matters
This chapter assumes you can move between Object Mode and Edit Mode, select vertices, edges and faces, and add modifiers. You should also know the parts of a mesh from the previous chapter: vertices, edges and faces. Here you will learn what a face normal is, how Blender decides which side of a face is "outside", how to see and fix wrong orientation, and why boolean operations depend on it.
What a face normal is
A face normal is a direction vector that points away from a face at a right angle. It has a length of 1 and no position of its own. It only tells Blender which way the face is looking.
Every face has two sides. The normal marks one of them as the front, or outside. The other side is the back, or inside. Blender does not store a separate "outside" flag. It works out the normal from the order of the face's vertices, called the winding order. If you look at a face from its front and the vertices run counter-clockwise, the normal points toward you.
Because the normal comes from the winding order, flipping a face means reversing its vertex order. Nothing about the shape changes. The face is in the same place, but its front and back swap.
Normals on a closed mesh
On a closed solid such as a cube or a sphere, every normal should point outward. This gives the mesh a consistent inside and outside. Blender, and any other program that reads the mesh, can then answer the question "is this point inside the object?" by looking at which side of the nearest face the point lies on.
That question is what a boolean operation asks all the time. To subtract one object from another, Blender must decide which parts of each surface lie inside the other object. If the normals disagree, the answer is wrong.
Normals are also used for:
- Shading. Smooth and flat shading both use normals to calculate how light hits a surface.
- Backface culling. When this viewport option is on, Blender hides faces whose normals point away from the camera.
- Solidify and Bevel. Modifiers that offset geometry move it along the normal, so a flipped face is pushed the wrong way.
- Rendering. Some effects, such as volume and subsurface scattering, need a clear inside and outside.
Seeing normals in the viewport
You cannot judge orientation from a normal view of an unlit solid, so turn on one of two overlays.
- Face Orientation. Open the Overlays popover in the 3D viewport header and tick Face Orientation. Faces that show their front are drawn blue, and faces that show their back are drawn red. On a healthy closed mesh viewed from outside, everything is blue.
- Normals display in Edit Mode. In the Overlays popover, open the Mesh Edit Mode section and enable the face normal display. Short lines appear, one per face (or per vertex or loop, depending on the button you pick). The Size slider controls the line length.
A red patch on the outside of a solid means those faces are flipped. A whole red object usually means the entire mesh is inside out.
Fixing orientation
Blender gives you two tools. Use the one that matches the problem.
| Tool | Where | What it does | Use it when |
|---|---|---|---|
| Recalculate Outside | Edit Mode, Mesh > Normals > Recalculate Outside (Shift+N) | Works out a consistent direction for all selected faces, pointing outward | Many faces are wrong, or the whole mesh is inside out |
| Recalculate Inside | Edit Mode, Mesh > Normals > Recalculate Inside (Shift+Ctrl+N) | The same, but pointing inward | You want an inward-facing shell, such as the walls of a room seen from inside |
| Flip | Edit Mode, Mesh > Normals > Flip | Reverses the winding of every selected face | A few specific faces are wrong, and you have selected only those |
Recalculate works by looking at how faces connect. It starts from the face that is most clearly on the outside and spreads the direction across shared edges. This works well on a closed mesh. It can fail when the mesh has holes, overlapping shells or faces that touch only at a single vertex, because then the "outside" is not well defined.
To recalculate on selected faces only, select them first. With nothing selected in Edit Mode, press A to select everything before using the command.
A worked example
Suppose you have a cube that you cut into with a rough tool and one face now renders dark.
- Select the object and turn on Face Orientation. One face shows red.
- Press Tab to enter Edit Mode and switch to face select mode (press 3).
- Click the red face to select it.
- Choose Mesh > Normals > Flip.
- Check that the overlay is now blue everywhere.
If many faces are red, skip steps 3 and 4. Press A to select all, then press Shift+N.
Custom normals and Auto Smooth
Normals have a second life besides the face direction. Blender can also store a normal for each corner of each face, called a split or custom normal. These control smooth shading and do not change the geometry. They can drift out of date after an edit, which causes shading problems that look like orientation problems but are not.
The difference is easy to test. Face Orientation colours show the true face direction. If the overlay is all blue and the surface still looks wrong, the problem is shading, not winding. A later chapter on restoring shading after a boolean covers that case.
Why orientation matters for booleans
Now the main point. The Exact solver and the Fast solver both need to classify space as inside or outside a mesh. They use the normals, or the mesh topology that the normals imply, to do it.
Here is what typically goes wrong:
- Inverted result. If the cutter has flipped normals, Difference can behave like Union, or like nothing at all. The solver thinks the cutter's inside is its outside.
- Missing or doubled geometry. A target with a few flipped faces can produce holes or ragged patches along the cut.
- No effect. If the whole target is inside out, the modifier may cut the opposite region.
- Warnings or empty output. The Exact solver may return an empty mesh when the input is not closed and consistent.
Orientation is only one of the conditions. A mesh must also be manifold, which means closed with no stray edges. The next chapter defines that term. Normals come first because a mesh can only have a meaningful inside once all its faces agree on a direction.
Checking and fixing normals with Python
You can inspect orientation from a script. This example reports how many faces point away from the object's centre, which is a quick sign that a convex shape is partly inverted. It then recalculates the normals. It works on a mesh that is roughly convex and centred on its origin, such as a cube or a sphere.
import bpy
import bmesh
from mathutils import Vector
obj = bpy.context.active_object
bm = bmesh.new()
bm.from_mesh(obj.data)
bm.faces.ensure_lookup_table()
centre = Vector((0.0, 0.0, 0.0))
inward = [f for f in bm.faces if f.normal.dot(f.calc_center_median() - centre) < 0]
print(f"Faces pointing inward before: {len(inward)}")
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
inward = [f for f in bm.faces if f.normal.dot(f.calc_center_median() - centre) < 0]
print(f"Faces pointing inward after: {len(inward)}")
bm.to_mesh(obj.data)
bm.free()
obj.data.update()The dot product of a face normal and the vector from the centre to the face is positive when the face points outward. The check is only a heuristic. A hollow or concave shape has faces that legitimately point toward the centre, so use the Face Orientation overlay for those.
Common mistakes
- Trusting the shading. A smooth surface can hide wrong winding. Always check Face Orientation.
- Scaling an object by a negative value. A negative scale such as -1 on one axis mirrors the mesh and turns every normal inside out in the final result. Apply the scale with Ctrl+A, then run Recalculate Outside. The next chapters cover preparing transforms in more detail.
- Recalculating a mesh with holes. Fix the holes first, or the result may point the wrong way.
- Flipping too much. Select only the faces you mean to change.
Exercise
A cube you modelled shows all its faces in red when Face Orientation is on, but the shape looks correct. What is wrong, and which command fixes it with the fewest steps?
Show answer
The whole mesh is inside out, so every normal points inward. Enter Edit Mode, press A to select all faces, and run Mesh > Normals > Recalculate Outside (Shift+N). Flip would also work on a cube, but Recalculate Outside is the safer habit because it fixes mixed orientation too.
Exercise
Why can a cutter object with a few flipped faces make a Difference boolean give a wrong or ragged result?
Show answer
The solver decides which parts of each surface are inside the other object by using face orientation. Flipped faces tell it that part of the cutter's inside is its outside, so it keeps or removes the wrong regions along the cut. Recalculating the cutter's normals first removes the disagreement.