How to repair a broken STL

File formats· 9 min read· Updated 16 October 2026

An STL is a list of triangles and nothing else. Nothing in the format makes the triangles join up into a closed surface, so a file can look perfect in a viewer and still be broken in ways that make the slicer leave out walls, fill holes that should be open or skip whole layers. Most of these faults are easy to fix once you know which one you have.

What a valid mesh is

For a slicer, a good mesh is one closed surface, or several, that separates inside from outside without ambiguity. In practice that means three conditions:

A mesh that meets all three is called watertight: fill it with water and none would leak out. A simple count shows why the conditions are strict. In a closed triangle mesh each triangle has three edges and each edge belongs to two triangles, so the number of edges must be exactly 1.5 times the number of triangles. A cube has 12 triangles and 18 edges. One missing triangle, one doubled face or one gap where two corners almost meet breaks that balance, and somewhere the slicer no longer knows which side is inside.

The format makes this easy to break. An STL stores each triangle with its own copy of its three corner points; nothing records that two triangles share an edge. Programs that read STL rebuild the connections by matching coordinates, and corners that differ by a tiny rounding error do not match, which leaves a hairline crack.

The errors, one by one

ErrorWhat it isTypical causeWhat you see after slicing
Open edges, holesEdges with only one triangleDeleted faces, 3D scans, lost precision in conversionMissing wall sections, gaps in top surfaces, or nothing at all on some layers
Flipped normalsSingle faces pointing inwardEdits in mesh tools, mirrored partsOften nothing; sometimes small missing areas
Inside-out shellAll faces of a part point inwardMirroring without flipping the facesThe part may be treated as empty, or as a hole in another part
Non-manifold edgesEdges with three or more trianglesParts placed against each other but not joinedThin internal walls, or gaps where the parts meet
Self-intersectionsSurfaces passing through each otherOverlapping shells, such as a head pushed into a bodyUsually fine; sometimes a void or doubled wall where they overlap
Stray shellsTiny separate piecesScan noise, leftovers from editingSpecks printed in mid-air or extra travel
Internal shellsA closed shell inside anotherDuplicated objects, hidden helper geometryA cavity where the part should be solid, or an extra wall inside it
Zero-thickness surfacesSingle sheets with no volumeGame and animation models, flags, leaves, hair cardsThe sheet is ignored and disappears
Degenerate trianglesTriangles with zero area, or duplicated trianglesExporters, conversionsUsually harmless, but they break edge counts and some tools

Multiple shells are not an error in themselves. A kit of parts in one file, or a model with a separate base, is meant to have several. They become a problem when they overlap badly or sit inside each other. To print the parts of a kit separately, take them apart with Split STL.

How to find out what is wrong

  1. Open it in a viewer. The STL viewer shows the size and triangle count. Check the size first: a model at 1/25 of its intended size has a unit problem, not a mesh problem; see scaling an STL. Faces that render dark, or that let you see into the model, may be flipped.
  2. Let a repair tool mark the edges. Repair STL draws open edges in red and other problem edges in orange, so you see whether the problem is one hole under the base or thousands of cracks all over the surface.
  3. Read the slicer's warnings. Slicers that repair on import usually mark the object and list what they changed. Treat a long list as a sign that the file needs a real repair.
  4. Check the layer preview. Step through the layers where the model is complex. Missing walls, a top surface with holes, or a layer that is suddenly empty all point to a mesh fault at that height. The slicer preview guide explains what to look for.

What slicers fix on their own, and what they do not

Slicers are tolerant because they have to be: many downloaded files are imperfect. PrusaSlicer, OrcaSlicer and Bambu Studio repair common errors when a model is imported and show that they did. Cura leaves the mesh as it is and handles faults while slicing, with options in its Mesh Fixes section such as Union Overlapping Volumes, Remove All Holes and Extensive Stitching.

What slicers generally handle well:

What they cannot fix, or fix differently from one program to the next:

The repair order

The faults depend on each other, so the order matters. Automatic tools follow roughly this sequence, and it is the right one for manual work as well:

  1. Join corners that almost meet. Welding points within a very small distance, 0.01 mm or less, closes hairline cracks and turns thousands of open edges into a closed surface. Keep the distance small, or separate details start merging.
  2. Remove duplicate and degenerate triangles. They distort the edge counts that the next steps rely on.
  3. Make orientation consistent within each part, then turn whole parts that point inward the right way round.
  4. Fill the remaining holes. Only now are the true holes clear, and each one is closed along its border.
  5. Delete stray fragments if they are noise, not parts.
  6. Check again. A repaired part should report as watertight with a positive volume. If it does not, the remaining problem is one of the hard cases below.

Repair before anything else you do to the file. Resizing, cutting, compressing and converting all work better on a closed mesh, and some refuse to work without one.

When automatic repair is not enough

Do not repair what is meant to be open

Some files are not meant to be solids: a surface used only as a visual reference, or a cut-away display model. And a hollow part with an inner surface, such as a hollowed resin model, is a valid closed mesh with an internal shell, not a fault. Check what the author intended before filling or deleting anything.

Exporting files that do not need repair

Find and fix the errors Open edges and other problem edges are marked in 3D, holes are filled, flipped faces turned round, and the result is checked again before you download.
Open Repair STL →

Frequently asked questions

What does non-manifold mean?

In a manifold mesh every edge is shared by exactly two triangles, so the surface is closed and has a clear inside. An edge used by only one triangle is an open edge, the border of a hole. An edge shared by three or more triangles is non-manifold, typically where two parts touch along an edge or a face. Both confuse the slicer about what is inside the part.

Can I print an STL that is not watertight?

Often, yes. Slicers close small holes and work around flipped faces on their own, and the print may be fine. Look at the slicer preview layer by layer: if every wall and top surface is there, the repair worked. If walls are missing or layers are empty, repair the file before slicing.

Why does my model look fine in the viewer but slice badly?

A viewer only draws the triangles. A slicer has to decide what is inside the surface, and that needs a closed mesh with consistent face directions. A tiny gap or a face pointing the wrong way is invisible on screen but can change the inside and outside on some layers.

Does repairing an STL change its shape?

A good repair keeps every existing triangle and only adds new ones to close holes, so small holes get small flat patches. Large missing areas are closed with a flat or slightly domed cap that may not match the original curve, and these may need finishing in a modelling program.

What is the best fix for a badly broken 3D scan?

Remeshing. A voxel remesh rebuilds the whole surface as a new closed mesh, which removes holes, intersections and stray pieces in one step. Choose a voxel size smaller than the finest detail you want to keep, for example 0.1–0.2 mm for a small figure, and compare the result with the original.

Keep reading