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
Export protocol · FreeCAD 0.21 · Lab report
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
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.
Six reference pages that cover the steps before and after the export dialog opens.
Open wires and unconstrained geometry break the mesh before export even starts. The checklist for a clean STL begins in Sketcher.
Read the Sketcher guideFillets applied before pockets often create self-intersecting faces that survive export and fail inside the slicer.
Read the PartDesign guideDrive wall thickness and deviation from one Spreadsheet so every exported revision uses the same numbers.
Read the parametric guideDimensioned PDF drawings generated from the same solid, with tolerances that match the exported model.
Read the TechDraw guideBrackets, clamps and fixtures exported from real work, with the exact settings used for each file.
Open the galleryMaterial cost per part, so export quality is weighed against the real price of a failed print run.
See the cost tableSTL 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.
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 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.
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.
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
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
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 mm | 1,842 | 92 KB | faceted fillets |
| 0.20 mm | 8,960 | 448 KB | acceptable |
| 0.05 mm | 61,300 | 3.1 MB | reference |
| 0.02 mm | 214,000 | 11.4 MB | no 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.
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.
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.
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.
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.
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.