Sub topic 3
What makes a mesh manifold
This chapter assumes you can switch between Object Mode and Edit Mode, select vertices, edges and faces, and read the Statistics overlay. It also assumes you know what face normals are from the previous chapter. Here you will learn the precise rule that separates a mesh a boolean can use from one it cannot. You will also learn the six ways a mesh breaks that rule and how to check for each one.
The working definition
A boolean operation has to answer one question for every point in space: is it inside the object or outside? That question only has a clean answer when the mesh is a closed surface with a well-defined inside. A mesh like that is called manifold, often described as watertight.
In practice, Blender's tools check these conditions:
- Every edge touches exactly two faces. One face means a hole. Three or more faces means a fin or internal wall.
- The faces around every vertex form one connected fan. Two cones touching at a single point break this rule.
- Normals are consistent. Neighbouring faces agree on which side is outside.
- No wire edges, loose vertices or zero-area faces. These are geometry that is not part of any surface.
The first two conditions are the strict topological definition. The others matter in practice because the solvers decide inside and outside from face orientation. A mesh with perfect topology but half its normals flipped will still give wrong results.
Edge classification by face count
Counting the faces on each edge is the fastest way to reason about a mesh. Blender's Non Manifold selection and the bmesh API both use this idea.
Only the manifold edge is healthy. Every other branch is a defect the Exact solver may reject or misinterpret.
The six defects, and where they come from
Each defect has typical sources. Knowing the source tells you whether to fix the mesh or avoid the cause.
| Defect | Face count | Typical cause |
|---|---|---|
| Wire edge | 0 | Deleting faces but keeping edges. Imported curves. |
| Boundary edge | 1 | Missing cap on a cylinder. A deleted face. An unclosed plane used as a "wall". |
| Multiple faces | 3 or more | Extruding a face without moving it, then cancelling. A duplicated face left inside. |
| Non-contiguous | 2, inconsistent | Mirroring without recalculating normals. Manually flipped faces. |
| Non-manifold vertex | n/a | Two shapes joined at a single point. Faces merged by Merge by Distance in the wrong place. |
| Zero-area or loose geometry | n/a | Collapsed faces from scaling to 0. Stray vertices after deleting. |
The "extrude and cancel" case is the most common one for modellers. Pressing E and then Esc or right-click leaves a duplicate face on top of the original. It looks fine in the viewport, but every edge of that face now borders three faces.
Finding the problems in Blender
Enter Edit Mode and switch to Vertex or Edge select mode. The Non Manifold command does not work in Face mode. Choose Select > Select All by Trait > Non Manifold, or press Shift+Ctrl+Alt+M. The Adjust Last Operation panel lists the checks.
| Option | Selects |
|---|---|
| Wire | Edges with no faces |
| Boundaries | Edges with exactly one face |
| Multiple Faces | Edges with three or more faces |
| Non Contiguous | Edges whose two faces disagree on orientation |
| Vertices | Vertices where separate face fans meet |
Run the checks one at a time rather than all at once. Boundaries tell you where holes are. Multiple Faces tells you about internal geometry. Selecting everything at once hides which kind of defect you have, and the repair for each kind is different.
Turn on Overlays > Statistics to see how many vertices, edges and faces are selected. If the selection count is zero after all five options are on, the mesh is manifold by Blender's definition.
You can also check the Euler characteristic as a sanity test. For a closed surface with no holes through it, V − E + F = 2. A cube gives 8 − 12 + 6 = 2. A torus gives 0, and a mesh with two separate closed shapes gives 4. This formula does not locate defects. It only tells you that something has changed.
Checking from Python
The same face-count logic is available in bmesh. This script reports each defect type for the active mesh object and runs without modification.
import bpy
import bmesh
obj = bpy.context.active_object
if obj is None or obj.type != 'MESH':
raise RuntimeError("Select a mesh object first")
bm = bmesh.new()
bm.from_mesh(obj.data)
wire = [e for e in bm.edges if e.is_wire]
boundary = [e for e in bm.edges if e.is_boundary]
multi = [e for e in bm.edges if len(e.link_faces) > 2]
flipped = [e for e in bm.edges if e.is_manifold and not e.is_contiguous]
bad_verts = [v for v in bm.verts if not v.is_manifold]
loose = [v for v in bm.verts if not v.link_edges]
print(f"Wire edges: {len(wire)}")
print(f"Boundary edges: {len(boundary)}")
print(f"Multiple-face edges: {len(multi)}")
print(f"Non-contiguous edges: {len(flipped)}")
print(f"Non-manifold verts: {len(bad_verts)}")
print(f"Loose verts: {len(loose)}")
bm.free()is_contiguous is only meaningful on edges with two faces, so the script tests is_manifold first. Note that a loose vertex also counts as non-manifold, so the loose count is a subset of the vertex count.
What the solvers do with a broken mesh
The two solvers fail differently, which matters when you are deciding whether a defect is worth fixing.
- Exact works from the full topology of both meshes and expects closed volumes. On a mesh with holes it may produce an empty result, a result with missing patches, or a cut that fills the wrong region. Its Self Intersection and Hole Tolerant options trade speed for more forgiving behaviour. Hole Tolerant helps with mild defects, but it does not repair a mesh. It only changes how the solver copes.
- Fast classifies faces more loosely and does not stop on open meshes. It tends to give a plausible result with artifacts such as missing faces or inverted regions, so errors are easier to miss.
Solver details come in a later chapter. The point here is that a manifold input is the cheapest fix for most boolean failures, and it works with either solver.
Intentionally open meshes
Not every open mesh is a mistake. A plane, a curtain, a leaf or a text outline is open by design. They are fine for rendering, but they are not valid boolean operands. If you need to cut with a flat shape, give it thickness first. A Solidify modifier does this without changing the original surface. The result has a boundary on both sides, joined by a rim, which makes the shape closed.
A short working routine
Use this order before any boolean on a mesh you did not build yourself:
- Select all and run Mesh > Normals > Recalculate Outside.
- Run Mesh > Clean Up > Merge by Distance to remove duplicate vertices that would otherwise count as extra boundaries.
- Run Select Non Manifold with Wire, Boundaries and Multiple Faces enabled.
- Fix what is selected, then run the check again until the selection is empty.
Steps 1 and 2 are cheap and fix many cases outright. A later chapter covers them in detail, together with repairs for the remaining defects.
Exercise
You add a cube, press E to extrude the top face, then press Esc to cancel. The cube looks unchanged. In Edit Mode with Edge select, you run Select Non Manifold with only Multiple Faces enabled. Which edges are selected, how many faces does each one touch, and why does the Exact solver have trouble with this cube?
Show answer
The four edges around the top face are selected. Each touches three faces: one side face, the original top face, and the duplicate top face left by the cancelled extrude. The edges therefore fail the "exactly two faces" rule. The duplicate face is internal geometry, so the mesh no longer has a single well-defined inside and outside. The Exact solver can misclassify regions near the top face or return a broken result. The fix is to delete the duplicate face, or select the faces and run Merge by Distance, then run the check again.
Exercise
A mesh has 10 vertices, 15 edges and 7 faces and forms a single closed surface with no holes through it. Does the Euler characteristic suggest it is intact, and what would you check next if the Non Manifold selection also found nothing?
Show answer
V − E + F = 10 − 15 + 7 = 2, which matches a closed surface without handles, so the counts are consistent. If Non Manifold finds nothing, check for problems that edge counts cannot reveal: flipped normals that are consistent but all pointing inward (use Face Orientation overlay), self-intersection, and overlapping coplanar faces.