STL resolution: smooth curves without huge files

File formats· 8 min read· Updated 16 October 2026

A CAD program stores a hole as a perfect cylinder. The STL it exports stores a prism with flat sides, and the export settings decide how many. Too few and holes print small and curves show flat bands; too many and the file grows to hundreds of megabytes that no printer can tell apart from a file a tenth the size. Two numbers control the trade-off.

The two settings: chord tolerance and angle

When a curved surface is turned into triangles, two limits decide how fine the triangles must be. Every CAD exporter uses both, under different names.

On a circle of radius r divided into n equal segments, the gap between each flat side and the arc is r × (1 − cos(180° ÷ n)). The two limits behave very differently as the radius changes:

RadiusSegments for 0.01 mm deviationDeviation with a 10° angle limit (36 segments)
2.5 mm (5 mm hole)360.010 mm
10 mm710.038 mm
50 mm1580.19 mm
100 mm2230.38 mm

An angle limit alone gives every circle the same number of sides, so small holes come out well and large curves come out visibly faceted. A chord tolerance alone does the opposite: large curves come out smooth, but a tiny fillet or a small pin may get only a handful of sides. Exporters apply whichever limit is stricter for each surface, which is why both should be set.

Why coarse meshes make holes too small

Exporters place the corner points of each facet on the true surface, so a faceted circle lies inside the real one. For a hole, that means the opening is smaller than designed; across two flat sides it measures d × cos(180° ÷ n).

5 mm hole withAcross the flatsUndersize
8 segments4.62 mm0.38 mm
12 segments4.83 mm0.17 mm
32 segments4.98 mm0.02 mm
64 segments4.99 mm0.01 mm

An undersize of 0.17 mm is as large as the whole clearance of a snug fit. Printed holes also tend to shrink for reasons of their own, explained in the tolerance guide, and the two effects add up. A pin fitted into a coarse hole binds on the flats even when the clearance looks right in the CAD model.

OpenSCAD's default circles are coarse

OpenSCAD decides the number of segments from $fa (minimum angle, default 12°) and $fs (minimum segment length, default 2 mm). For a 5 mm hole that gives 8 segments, and the hole prints 0.38 mm narrow across the flats. Set $fn for each circle, or lower $fa and $fs for the whole file, for example $fa = 2 and $fs = 0.4, before exporting.

Values that work for printing

The right resolution follows from what the printer can reproduce. An FDM print has layers of 0.1–0.3 mm and lines about 0.4 mm wide, and its dimensions are normally off by more than a few hundredths of a millimetre. Facet deviations well below that level do not show.

PartChord toleranceAngle
Brackets, jigs, mostly flat parts0.02–0.05 mm10–15°
General parts with holes and fitsabout 0.01 mmabout 5°
Large smooth curves, glossy or painted surfaces0.005 mm2–5°
Resin prints with fine detail0.005 mm or finer2–5°

These are starting points. Export once, open the file in the STL viewer and look at the largest curved surface in wireframe or under a low light: if you can count the facets on screen at the size the part will be printed, the print will show them too.

Where the settings are

Triangle count and file size

A binary STL uses 50 bytes per triangle and an 84-byte header. That makes size easy to predict:

TrianglesBinary STLTypical content
2,0000.1 MBSimple bracket or box
100,0005 MBDetailed mechanical part, finely exported
1,000,00050 MBFigure sculpt, high-resolution scan
5,000,000250 MBRaw scan or unreduced sculpt

Most of the triangles in a large file sit on curved surfaces, because flat faces need only a few. A finer export therefore grows the file mainly on parts with many fillets, small radii and organic shapes.

What the slicer does with fine meshes

The extra detail in a very fine mesh does not all reach the printer. Slicers cut the mesh into outlines and then simplify those outlines, merging points that are closer together than a resolution setting so the G-code does not fill with moves a fraction of a millimetre long. Names differ: PrusaSlicer has Slice resolution and G-code resolution, OrcaSlicer Resolution, Cura Maximum Resolution and Maximum Deviation. Some slicers can also fit arcs to curved paths, covered in the G-code guide.

Very short moves are a real concern on some printers: firmware that receives many tiny segments over a slow connection can run out of moves in its buffer and pause briefly, which leaves blobs on curved walls. Sensible mesh resolution and the slicer's own simplification avoid this.

Reducing file size without visible loss

When a file is too large to upload, share or slice comfortably, work through these in order:

  1. Save as binary. An ASCII STL is about five times the size of the same mesh in binary, with no difference in geometry.
  2. Save as 3MF. The mesh is stored with shared vertices and compressed, which usually makes it much smaller than a binary STL, and the units come along.
  3. Re-export from the source at a sensible tolerance if you have the CAD file. This gives the cleanest result, because points are placed exactly on the true surface.
  4. Decimate the mesh when there is no source, as with scans and sculpts. Compress STL uses quadric edge collapse, which removes triangles where they change the surface least, so flat areas lose triangles first and curves and edges keep theirs. Start at 50 %. For scans and organic sculpts, 10–25 % is often indistinguishable once printed. Mechanical parts have few spare triangles and reduce little.

Check the result against the original before printing, and decimate gently on the surfaces that matter: a hole that loses segments gets smaller, as the table above shows, and a thread whose flanks are simplified may no longer engage. If the file was broken to begin with, repair it first, since decimation keeps a mesh closed only if it was closed.

Make an STL smaller Reduce the triangle count while keeping the shape, size and sharp edges, and compare the result with the original in 3D before you download.
Open Compress STL →

Frequently asked questions

What resolution should I export an STL at?

A chord tolerance around 0.01 mm with an angular tolerance of about 5° gives curves that print smooth and holes within a few hundredths of a millimetre of their size, for typical parts. Go finer only for large, glossy curved surfaces, and coarser for flat mechanical parts where the file size matters.

Why are my printed circles flat-sided?

The mesh has too few segments. Each flat side in the STL is printed as a flat side, and on large radii the flats become wide enough to see and feel. Re-export with a smaller chord tolerance, or in OpenSCAD set $fa and $fs or $fn so the circles have more segments.

Does a higher-resolution STL make a better print?

Only up to a point. Once the mesh deviates from the true surface by much less than a layer height and the printer’s own error, more triangles change nothing on the print. They only make the file larger and the slicer slower.

How big is an STL with a million triangles?

A binary STL uses 50 bytes per triangle plus an 84-byte header, so one million triangles is about 50 MB. The same mesh as ASCII STL is roughly five times larger. 3MF stores the mesh compressed and is usually much smaller again.

Is decimating an STL the same as exporting at lower resolution?

The result is a smaller file in both cases, but re-exporting from the source is cleaner: the CAD program places points exactly on the true surface and keeps edges and circles regular. Decimation works on the triangles you already have, which is the only option for scans and sculpts.

Keep reading