# How We Test Mes3D: Reference Models, Expected Values, Limits

> The reference models, expected numbers and checks behind every Mes3D tool: volume, weight, measuring, units, conversion and STL repair, with their limits.

Source: https://freestlviewer.com/how-we-test/

Every number Mes3D shows comes from code that is checked against models whose
correct answer is known in advance: cubes of exact size, files saved in
inches, centimetres and metres, and meshes damaged on purpose. A tool counts as
working only when its output matches the expected value, and for converters
and repair, only when the downloaded file is opened again and re-checked. This
page lists those checks, when they were last run, and what the tools do not
promise.

## Volume, surface area and print weight

**Reference model:** a closed 10 mm cube with 12 triangles. Its correct values
are 1,000 mm³ volume, 600 mm² surface area, watertight, no open or
non-manifold edges, and one of its six faces facing straight down.

- Mes3D computes volume with the signed-tetrahedron method: every triangle
  forms a tetrahedron with the origin, and their signed volumes add up to the
  volume of the closed mesh. On the 10 mm cube it returns exactly 1,000 mm³
  and 600 mm².
- Weight is volume × material density at 100 % infill. The densities used are
  PLA 1.24, PETG 1.27, ABS 1.04 and standard resin 1.15 g/cm³.
- The [STL volume calculator](https://freestlviewer.com/stl-volume-calculator/) and
  [print weight calculator](https://freestlviewer.com/stl-weight-calculator/) were re-checked on
  22 October 2026 with a 20 mm cube, on a computer and on a phone: 8.00 cm³,
  24.00 cm² and 9.9 g of PLA (8 cm³ × 1.24 g/cm³ = 9.92 g).

**Limit:** the weight is for a solid part. A slicer's estimate with your real
infill, walls and supports will be lower, so treat Mes3D's figure as the upper
bound. If a mesh is not watertight, its volume is not well defined and the
viewer says so instead of showing a confident number.

## Overhangs and watertightness

- A triangle counts as an overhang when its normal points downward by more
  than 45° from vertical (normal Z below −sin 45°), with +Z as the build
  direction. On the reference cube exactly 1 of 6 faces is reported, the
  bottom face. The reasoning behind the 45° rule is in
  [our overhang guide](https://freestlviewer.com/blog/overhang-angle-and-supports/).
- Watertightness is checked edge by edge: every edge of a closed mesh must be
  shared by exactly two triangles. Edges used once are reported as open,
  edges used three or more times as non-manifold.

## Units and scale

STL files carry no unit, so the same numbers can mean millimetres or inches.
Mes3D reads STL, OBJ and PLY as millimetres, glTF, GLB and USD as metres (as
their specifications say), and takes the unit stored in 3MF, STEP and 3DM
files. These conversions are checked with files whose true size is known:

- a GLB box of 0.02 m opens and converts as 20 mm;
- an OBJ saved in centimetres converts to a 20 mm STL when the source unit is
  set to centimetres;
- a STEP cube saved in inches (39.37 in) converts to a 1,000 mm STL;
- a Draco-compressed GLB box of 1 m shows as 1,000 mm, and Meshopt + KTX2
  compressed samples give the same bounding box as glTF-Transform's
  reference implementation (22 October 2026).

Why STL has no unit, and how to spot a model that opened 25.4× too small, is
explained in [Does an STL file have units?](https://freestlviewer.com/blog/stl-units-mm-vs-inches/).

## File conversion

Converters are tested by converting a file, then **opening the downloaded file
again** and checking its size, unit and contents, not by trusting the
conversion code. Last run on 22 October 2026, in an automated browser:

- STL → 3MF: written in millimetres, duplicate vertices welded (a cube comes
  out with 8 shared corners);
- STL → OBJ;
- GLB in metres → STL in millimetres;
- OBJ in centimetres → STL in millimetres;
- STEP in inches → STL in millimetres;
- a multi-part STEP assembly → 3MF with each part's colour kept.

STEP files are tessellated in the browser with OpenCASCADE, the same geometry
kernel many CAD programs use. Start from the
[3D file converter](https://freestlviewer.com/3d-file-converter/) or [STEP to STL](https://freestlviewer.com/step-to-stl/).

## STL repair

The [STL repair tool](https://freestlviewer.com/stl-repair/) fixes holes, flipped triangles,
inside-out shells and non-manifold edges. It was tested on 12 November 2026
in three ways:

1. **Known faults, one at a time.** A suite of synthetic cases: a missing
   face, flipped triangles, an inside-out model, duplicate triangles, two
   boxes touching at an edge, an internal fin, a cube split into loose parts,
   a hollow box with a wrongly oriented inner void, an open hemisphere with
   scan noise, a flat sheet, a lone triangle, a T-junction crack and needle
   triangles. Each must end in the expected state. One case checks the
   opposite: a large curved opening must be left open, because closing it
   would invent a surface the designer never drew.
2. **Random damage.** 300 meshes damaged at random. The rule is that repair
   may never make a file worse: none got worse, and 298 of 300 came out
   watertight.
3. **The real path.** In the built site, a scan-like file (186 open edges,
   485 flipped triangles, 8 loose specks) and a Tinkercad-like file (an
   internal wall and an inside-out sphere) were repaired, downloaded, opened
   again and re-analysed: both were watertight.

Repair never moves a vertex; it only removes, flips and adds triangles. That
keeps the model's dimensions exactly as they were, and the result screen
checks the size before and after. A 1-million-triangle model takes about
5 seconds in our Node.js benchmark; in a browser it depends on your device.

**Limit:** this is mesh-level repair. It does not rebuild self-intersecting
geometry with booleans or remesh a model into voxels, and when it cannot fix
something it says what is left instead of claiming success.

## Nothing is uploaded, and you can check that

The viewer, calculators, converters and repair tool run in your browser.
There is no upload endpoint for your models. To confirm it yourself, open
your browser's developer tools, switch to the **Network** tab, and open a
model: you will see the page's own scripts load, but your file is never sent
anywhere. The tools also keep working if you go offline after the page has
loaded.

## When we re-test

The checks above are re-run when the code they cover changes, and the date
next to each one is the last run. The web version of the mesh analysis was
ported from the Mes3D iOS app in July 2026 and checked against the same
reference cube, so the site and the app report the same values.

A file that gives a wrong number, or breaks a tool, becomes a new test case
before the fix ships.
