← Guides

How to compare two STL files and see what changed

To compare two STL files accurately, measure the distance between their surfaces rather than comparing triangles. The same shape can be meshed in many different ways, so two files can have completely different triangles and still describe the same part.

How surface comparison works

  1. Sample points across the surface of the new model.
  2. For each point, find the closest point on the old model's surface.
  3. Surface farther away than your tolerance counts as added.
  4. Repeat in the other direction: old surface with nothing near it in the new model counts as removed.

The largest distance found is often called the Hausdorff distance. It tells you the worst-case gap between the two shapes.

Choosing a tolerance

The tolerance is the distance below which you treat a difference as noise. It should be larger than the mesh error in your exports but smaller than the smallest change you care about. If you export with coarse settings, curved surfaces are only approximated, so a very small tolerance will flag meshing differences as if they were design changes.

Common mistakes

  • Different coordinate systems: exporting from different assemblies or origins makes everything look moved.
  • Different units: STL files don't record units, so a part in inches and one in millimeters will look completely different.
  • Reading moved geometry as new: a moved feature shows up as both added (where it is now) and removed (where it was).
  • Surfaces that became internal: if a wall gets taller, its old top face is now inside the solid, and it correctly shows as removed.

Try it

Cadelta's free compare tool runs this measurement in your browser, for STL files or STEP files (STEP is converted to a mesh on your computer first). Your files aren't uploaded. It's preview-grade: use it to direct your attention, not to certify a part.

See added and removed geometry in your browser. No account, and your files stay on your computer.

Compare two STL files free