---
title: "STL vs STEP vs 3MF measured on two real parts"
description: "We exported our blower and robot arm at three mesh settings and measured file size, triangle count and how much a 4.0 mm round feature shrinks as a mesh."
date: 2026-10-29
locale: en
url: https://tokenflake.com/blog/stl-vs-step-vs-3mf/
---

Most guides to STL, STEP and 3MF describe the three formats and stop there. This one measures them. We took two of [hitlcad's example designs](/blog/hitlcad-example-designs/), [our handheld blower](/designs/handheld-blower/) and [the machined robot arm](/designs/robot-arm/), and exported each one as a mesh at three settings. Then we weighed the files, counted the triangles and measured how far a round feature moves when it stops being a circle.

Every number in the tables was measured by us, on 2026-10-29, with OpenCascade 8.0.1 through cadquery-ocp, its binary STL writer and trimesh 5.2.0 for 3MF. The STEP files are the ones on our design pages. The robot arm is aluminium 6061 and is made on a machine, not a printer, so it's here only for file size and shrink, not for printing advice.

## The short answer

| If you need | Send | Why |
|---|---|---|
| The design itself, to edit or machine | STEP | It stores exact surfaces, so a 4.0 mm cylinder is still 4.0000 mm |
| One object for a slicer, any slicer | STL | Every slicer reads it, but it's the biggest mesh and carries only triangles |
| The same mesh, smaller, with units | 3MF | It was 3.35 to 4.35 times smaller than the same mesh as STL in our runs |

**The verdict.** Keep the STEP as the master and treat STL and 3MF as prints of it at a chosen resolution. The mesh setting you pick matters more to file size than the format does, and it's the setting, not the format, that decides how round a round feature stays.

## What each file actually stores

**STEP** is ISO 10303. Part 21 of it defines a clear text exchange format for product data described in the EXPRESS language [[1]](#source-1). The file holds a :term[boundary representation]{#boundary-representation}, meaning faces, edges and the exact surfaces under them. Our blower's file declares the AP214 automotive design schema in its header and stores each cylinder as a `CYLINDRICAL_SURFACE` with its radius written out, `2.` for a 4.0 mm one. Nothing in it is approximated.

**STL** stores triangles and nothing else. For each facet it holds the coordinates of the three corners and a normal pointing out of the model [[2]](#source-2). The Library of Congress notes there's no standard support in STL for colours or textures [[2]](#source-2).

**3MF** also stores a triangle mesh, but differently. A 3MF document must be a ZIP archive, compressed with Deflate or stored as is [[3]](#source-3). Inside it, each vertex is listed once and each triangle refers to three vertices by index [[3]](#source-3). The model has a unit, millimetre by default, with micron, centimetre, inch, foot and metre as the other choices [[3]](#source-3).

Turning the STEP into either mesh is :term[tessellation]{#tessellation}. The mesher we used, OpenCascade's BRepMesh, takes two settings. Linear deflection limits the distance between a curve and its tessellation, and angular deflection limits the angle between neighbouring segments [[4]](#source-4). Linear deflection is what most exporters call :term[chord tolerance]{#chord-tolerance}.

## We exported two real parts three ways

The blower's STEP has 24 solids and 993 faces. The robot arm's has 7 solids and 102 faces. We meshed each at three settings, coarse at 0.1 mm and 0.5 rad, medium at 0.01 mm and 0.2 rad, and fine at 0.001 mm and 0.05 rad.

| Part and setting | STL (bytes) | 3MF (about) | Triangles |
|---|---|---|---|
| Blower STEP | 3,607,596 as STEP | n/a | exact surfaces |
| Blower coarse | 1,589,184 | 391 kB | 31,782 |
| Blower medium | 4,107,884 | 1,090 kB | 82,156 |
| Blower fine | 31,605,984 | 9,421 kB | 632,118 |
| Robot arm STEP | 561,549 as STEP | n/a | exact surfaces |
| Robot arm coarse | 419,984 | 97 kB | 8,398 |
| Robot arm medium | 1,284,284 | 302 kB | 25,684 |
| Robot arm fine | 4,102,684 | 1,015 kB | 82,052 |

The 3MF sizes are rounded because they moved by a few bytes from run to run, about 10 at most. That's because trimesh, the 3MF writer we used, gives the object a new random ID on every export, so an identical mesh doesn't give a byte-identical archive. The ZIP file times are fixed. The STL sizes and triangle counts didn't move.

![Horizontal bars of file size for the blower. STEP 3.6 MB. STL coarse 1.6, medium 4.1, fine 31.6 MB. 3MF coarse 0.39, medium 1.1, fine 9.4 MB.](./figures/stl-vs-step-vs-3mf/f2.svg "The blower's files on one scale. Measured by us, 2026-10-29. Original figure.")

Three things stand out. At the medium setting the blower's exact STEP, 3.6 MB, is smaller than its STL, 4.1 MB. At fine the STL is 8.8 times the size of the STEP. And the robot arm, with far fewer curved faces, has a coarse STL smaller than its STEP but a fine one 7.3 times bigger.

## STL size is just triangle count

A binary STL is exactly 84 bytes plus 50 bytes per triangle. All six of our STLs fit that to the byte. The blower at coarse is 84 + 50 × 31,782 = 1,589,184 bytes, and the fine one is 84 + 50 × 632,118 = 31,605,984. So you can predict an STL's size before you export it, if you know how many triangles the setting will make, and you can read the triangle count off any STL from its size.

The 3MF of the same mesh was 3.35 to 4.35 times smaller in our six runs. Two things help it. Each shared vertex is stored once instead of once per triangle that touches it [[3]](#source-3), and the whole thing is Deflate compressed [[3]](#source-3). It was most compact relative to STL on the robot arm at coarse and least on the blower at fine.

hitlcad's own export uses 0.01 mm and 0.1 rad by default [[5]](#source-5). For the blower that gives a 7,883,884 byte STL with 157,676 triangles, which matches 84 + 50 × 157,676. That's between our medium and fine settings, nearer medium.

## How much a round feature shrinks

The blower's STEP has six 4.0 mm cylindrical faces, one on each of the six heat-set insert models in the assembly, four under the handle pad and two at the grip-cap end of the handle [[5]](#source-5). They're a short round band on each insert, not the holes the inserts go into. We picked them because they're the only 4.0 mm cylinders in the file, so they make a clean test of what meshing does to a circle.

In a mesh a circle becomes a polygon. Its corners sit on the true circle and its flats cut inside it, so the largest circle that fits inside is D × cos(π/n) for n flats. That's simple geometry, and our measurements match it to four decimals.

| Setting | Flats around 4.0 mm | Largest circle inside (mm) | Lost (mm) |
|---|---|---|---|
| STEP | exact | 4.0000 | 0 |
| Coarse | 26 | 3.9708 | 0.029 |
| Medium | 63 | 3.9950 | 0.005 |
| Fine | 252 | 3.9997 | 0.0003 |

On the robot arm's 6.6 mm cylinders the coarse mesh lost 0.05 to 0.06 mm, medium 0.008 mm and fine 0.0006 mm.

![A true circle labelled 4.0000 mm with a polygon of flat sides inside it labelled 3.9708 mm. The flats sit inside the circle, so the meshed feature is 0.029 mm smaller. The coarse export uses 26 flats, drawn here with 8 so the gap shows.](./figures/stl-vs-step-vs-3mf/f1.svg "The coarse 4.0 mm feature with its gap exaggerated. Measured by us, 2026-10-29. Original figure.")

Treat each setting as a hard limit and you can predict the flats. The chord limit alone asks for about 10, 32 and 100 flats around a 4.0 mm circle, and the angle limit asks for 13, 32 and 126, so the stricter of the two gives 13, 32 and 126. The mesher used about twice as many, 26, 63 and 252. OpenCascade's guide describes the two deflections as limits [[4]](#source-4), but its mesher halves both before it splits a curved edge [[6]](#source-6), so the real angle limits were 0.25, 0.1 and 0.025 rad. With those, the prediction is exactly 26, 63 and 252 flats, and the shrink it gives, 0.029, 0.005 and 0.0003 mm, is what we measured. So the settings you type in are not the settings the edges are meshed to.

## Does it matter for an M3 heat-set insert

The blower is put together with M3 screws into CNC Kitchen M3 × 5.7 heat-set inserts [[5]](#source-5), so the question comes up. What we can say from our own numbers is how much a mesh setting moves a 4.0 mm circle, from 0.029 mm at coarse to 0.0003 mm at fine. Whether 0.029 mm matters for how an insert seats depends on how the printer reproduces a hole, and that's a fit question with its own sources. It's coming in a separate post on printing tolerances, so we've left it there rather than guess at it here.

One thing is plain geometry. A mesh never makes a round hole bigger than drawn. Its flats sit inside the circle, so a meshed hole can only be the same size or smaller, and a meshed pin can only be the same size or smaller too.

## Which setting to export at

Start from what the file is for. A slicer only ever sees the mesh, so it's the mesh setting that fixes how round a feature arrives. A machine shop or another CAD tool should get the STEP, which has no setting to get wrong. For the printer, these are the trade-offs our numbers show.

- **Coarse** saved the most space but moved a 4.0 mm feature by 0.029 mm.
- **Medium**, with the same 0.01 mm chord as hitlcad's default, kept that same feature within 0.005 mm at a size close to the STEP.
- **Fine** got within 0.0003 mm and cost nearly nine times the STEP's size as an STL.
- **3MF** gives the same mesh at a quarter to a third of the size and says which unit it's in.

If you want to try this on your own parts, [install hitlcad](/blog/install-hitlcad/) and [build a first design](/blog/first-hitlcad-design/). Its export settings live in its config [[5]](#source-5). [What hitlcad is](/blog/what-is-hitlcad/) covers everything else a build writes besides the meshes. Or [download the STEP](/models/handheld-blower.step) of the blower and mesh it yourself.

## Sources

- <span id="source-1"></span>[1] [ISO 10303-21 – 2016 – Industrial automation systems and integration – Product data representation and exchange – Part 21 – Implementation methods – Clear text encoding of the exchange structure](https://www.iso.org/standard/63141.html), ISO, edition 3, 2016-03, accessed 2026-10-29.
- <span id="source-2"></span>[2] [STL (STereoLithography) File Format Family](https://www.loc.gov/preservation/digital/formats/fdd/fdd000504.shtml), Library of Congress, fdd000504, last significant update 2025-02-25, accessed 2026-10-29.
- <span id="source-3"></span>[3] [3D Manufacturing Format Core Specification & Reference Guide](https://github.com/3MFConsortium/spec_core/blob/master/3MF%20Core%20Specification.md), 3MF Consortium, version 1.4.0, accessed 2026-10-29.
- <span id="source-4"></span>[4] [Mesh](https://occt3d.com/dev/doc/overview/html/occt_user_guides__mesh.html), Open CASCADE Technology 8.0.1 user guide, accessed 2026-10-29.
- <span id="source-5"></span>[5] [hitlcad](https://github.com/blne-team/hitlcad/tree/7a8a11279e45dee702f2a449ad66c0258f420d80), blne-team on GitHub, commit 7a8a112 of 2026-10-26, export defaults in config.py and the handhold-fan example, accessed 2026-10-29.
- <span id="source-6"></span>[6] [BRepMesh_CurveTessellator.cxx](https://github.com/Open-Cascade-SAS/OCCT/blob/V8_0_1/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_CurveTessellator.cxx#L73-L74), Open CASCADE Technology V8_0_1 on GitHub, lines 73 to 74, accessed 2026-10-29.
