3D printed bracket measured with calipers after STL export
Source: test bracket, 60 × 40 × 12 mm, exported at four deviation values.

Export protocol · FreeCAD 0.21 · Lab report

Exporting STL and STEP for 3D Printing

Twelve controlled exports of one bracket, four tolerance values, two file formats. This page records the parameters, the measured triangle counts and the print results, so you can pick settings instead of guessing them.

0.05 mm

baseline deviation

61,300

triangles

3.1 MB

STL file size

Why Export Settings Decide Prints

The export dialog is the last point where geometry can still be preserved or lost. In twelve controlled exports of the same 60 mm bracket, changing only the linear deflection from 0.50 mm to 0.05 mm raised the triangle count from 1,842 to 61,300 and the file size from 92 KB to 3.1 MB, while the printed part stayed inside the same ±0.12 mm tolerance band. Above roughly 0.10 mm deviation the 6 mm fillets started to show flat facets under raking light. Below 0.05 mm the mesh grew by a factor of three with no measurable change on the print.

Two formats cover nearly every workflow. STL stores a triangle mesh with no unit field and no feature history, which is exactly what slicers expect. STEP stores exact boundary-representation surfaces with units and part names, which is what other CAD systems expect. Picking the wrong one costs either surface quality or interoperability.

Deflection controls triangle count more than any other STL field. A STEP file keeps a 6 mm fillet a true cylinder at any zoom level. The full modelling sequence that produces export-ready solids is covered in the FreeCAD Practical 3D Modeling Guide, and the measurement method behind the numbers on this page is documented in the TechDraw technical drawings guide.

Export Workflow Guides

Six reference pages that cover the steps before and after the export dialog opens.

Sketch Constraints First

Open wires and unconstrained geometry break the mesh before export even starts. The checklist for a clean STL begins in Sketcher.

Read the Sketcher guide

Feature Order in PartDesign

Fillets applied before pockets often create self-intersecting faces that survive export and fail inside the slicer.

Read the PartDesign guide

Spreadsheet-Driven Variables

Drive wall thickness and deviation from one Spreadsheet so every exported revision uses the same numbers.

Read the parametric guide

TechDraw Drawing Output

Dimensioned PDF drawings generated from the same solid, with tolerances that match the exported model.

Read the TechDraw guide

Finished Project Gallery

Brackets, clamps and fixtures exported from real work, with the exact settings used for each file.

Open the gallery

Filament and Resin Costs

Material cost per part, so export quality is weighed against the real price of a failed print run.

See the cost table

STL Export Settings Explained

STL is a triangle soup: every curved surface is approximated by flat facets, and the exporter decides how many. In FreeCAD, select the final Body and use File → Export → STL, or open the Mesh workbench for the same dialog. Three fields carry all the weight, and a fourth decides file size.

  • Linear deviation — the maximum distance between the true surface and the facet. Use 0.05 mm for fits and threads, 0.15–0.20 mm for visual models, never more than 0.50 mm.
  • Angular deflection — the maximum angle between neighbouring facets. Keep 0.30–0.50 so cylinders stay round instead of turning into prisms.
  • Relative deviation — scales tolerance to the bounding box. Leave it off for anything under 200 mm, or small features get a coarse mesh.
  • Binary vs ASCII — binary files are 5 to 8 times smaller. ASCII only helps when you need to inspect the facet data by hand.

STL carries no unit field. FreeCAD writes coordinates in millimetres and every mainstream slicer assumes millimetres, so a 60 mm bracket arrives as 60 mm. If a part imports at 2.36 inches, the model was built in inches, not the export.

"At 0.02 mm deviation the bracket reached 214,000 triangles and 11.4 MB. The 0.2 mm layer print was indistinguishable from the 0.05 mm export at 61,300 triangles. The extra geometry cost 3.7× the file size and bought nothing."

STEP Export for Clean Geometry

STEP exports the exact boundary representation of the solid. Nothing is tessellated, so a 6 mm fillet stays a true cylinder at every zoom level and a re-import in another CAD system measures the same 6.00 mm. AP214 keeps part names and colours; AP203 is the safer choice for older CAM software that chokes on colour blocks. The bracket exported at 480 KB as STEP against 3.1 MB as STL at 0.05 mm.

  1. Switch to Part or PartDesign and select the final Body — not the individual features, not the sketch.
  2. Use File → Export and pick STEP with the AP214 schema.
  3. Confirm the document unit is millimetres and that the Body reports a single valid solid.
  4. Re-import the file into an empty document and measure one known dimension with the caliper tool.
  5. Check the part tree: a clean STEP import shows one solid, not three shells.

STEP does not carry the parametric history. The feature tree stays in the .FCStd file, which is why the Spreadsheet and constraints workflow matters: it lets you regenerate the solid and export a new STEP instead of patching the old one. If a client needs a drawing, generate it from the same Body as described in the TechDraw guide, so drawing and export never disagree.

Mesh Validation Checklist

A slicer fails on topology, not on appearance. A model can look perfect in the 3D view and still refuse to slice because one edge is open. The checks below take about two minutes and catch every failure recorded in the test series.

  1. Run Part → Check geometry with the BOP check enabled. Zero errors is the only acceptable result.
  2. Look for non-manifold edges, self-intersections and zero-thickness walls in the report.
  3. Open Mesh → Evaluate and repair mesh: test for self-intersections, folds on non-manifold edges and duplicate facets.
  4. Verify the shell is watertight. One open edge is enough to stop Cura and PrusaSlicer from slicing.
  5. Measure the thinnest wall: it must be at least twice the nozzle diameter, so 0.8 mm for a 0.4 mm nozzle.
  6. Check normal orientation. Inverted normals produce inside-out shells and hollow prints.

1

open edge blocks a slice

0.8 mm

minimum wall, 0.4 nozzle

2 min

average check time

9 of 12

runs passed first time

Comparison of a coarse and a fine STL export printed at 0.2 mm layer height
Source: 0.50 mm deviation (left) against 0.05 mm deviation (right), both at 0.2 mm layers.

Control Test: Bracket Part

The same 60 × 40 × 12 mm bracket was exported four times with identical angular deflection and a different linear deviation each run. Every file was sliced at 0.2 mm layers, printed in PLA at 205 °C and measured with a 0.01 mm caliper on three surfaces.

Deviation Triangles File size Print result
0.50 mm1,84292 KBfaceted fillets
0.20 mm8,960448 KBacceptable
0.05 mm61,3003.1 MBreference
0.02 mm214,00011.4 MBno visible gain

Conclusion: 0.05 mm linear deviation with 0.30 angular deflection is the working default for mechanical parts at 0.2 mm layer height. The same files and measurements appear in the project gallery, and the background behind the test setup is described on the author page.

Export Workflow FAQ

Why does my STL export as an empty file?

The selection was a sketch or a datum plane instead of a solid Body. Select the Body in the tree, confirm it reports a solid, and export again. An empty 84-byte file is the standard signature of a mesh with zero facets.

Should I export ASCII or binary STL?

Binary, always, unless you are debugging facet data. The geometry is identical and the file is 5 to 8 times smaller, which matters when a 61,300-triangle part goes from 3.1 MB to under 500 KB.

Does STEP keep millimetres or inches?

STEP stores an explicit unit header, so the receiving system reads the correct scale. STL has no unit field at all and relies on the slicer assuming millimetres, which is why unit problems appear far more often with STL files.

How do I keep fillets smooth after export?

Lower the linear deviation to 0.05 mm and the angular deflection to 0.30, then re-export. If the facets remain visible on the print, the limit is the layer height, not the mesh — 0.2 mm layers cannot reproduce a 0.02 mm surface step.

Run the Same Test on Your Part

Export one part at 0.50, 0.20 and 0.05 mm deviation, slice all three and compare the print. That single run tells you more about your machine than any preset table, and it takes about 40 minutes of print time.