· STEP and STL

Threads in STEP: what survives in the STL mesh

The mesh keeps a modelled thread as a coarse spiral. The printer is where the thread stops working.

On this page
  1. Two different things called a thread in STEP
  2. How deep is a metric thread?
  3. What does the tessellator do to a modelled thread?
  4. Printer resolution limits
  5. Does this converter keep threads?
  6. The pilot-hole route
  7. How to check whether a thread survived
  8. When a printed thread is the right choice
Technical diagram: Two things called a thread, only one reaches the mesh; cosmetic does not. Diagram, not a photograph.

A cosmetic thread never enters the mesh at all. A modelled thread does, and it survives as a faceted spiral: the tessellator keeps the crest and root edges and samples the surface between them more coarsely as the part grows. The printer, not the file, is where the thread stops working.

Two different things called a thread in STEP

A CAD file can describe a thread in two ways. The first is a cosmetic thread: a cylindrical face with an annotation that says M6×1.0 or 1/4-20. The annotation may sit in the file as a text note, a PMI annotation, or a feature property. The second is modeled geometry: a helical sweep with a real V profile, so the surface itself rises and falls around the hole.

The distinction explains most of the confusion. A cosmetic thread has no groove to tessellate. The cylinder meshes as a cylinder, and the callout stays behind in the STEP. STL has no annotation field, so even a perfect translator could not carry the note across. A modeled thread does have a groove, and the tessellator samples it; the sampling gets coarser as the part grows, and the printer may not be able to follow the result.

AP242 can carry semantic product manufacturing information, including thread callouts, alongside the geometry. That is useful for a manufacturer reading the STEP. It does nothing for an STL, which is a triangle list with no place for a note.

How deep is a metric thread?

ISO 68-1 defines the basic profile of an ISO metric screw thread. The flanks meet at 60°, and the fundamental triangle height is H = 0.866025 × P, where P is the pitch. The external thread’s radial depth is about 0.613 × P. The internal thread’s minor diameter is D − 1.0825 × P, so the radial depth from the major diameter is about 0.541 × P.

For common coarse pitches the groove is shallower than the pitch suggests: at M3, 0.271 mm for the internal thread and 0.307 mm for the external.

Thread Pitch P Internal radial depth External radial depth
M3×0.5 0.5 mm 0.271 mm 0.307 mm
M4×0.7 0.7 mm 0.379 mm 0.429 mm
M5×0.8 0.8 mm 0.433 mm 0.491 mm
M6×1.0 1.0 mm 0.541 mm 0.613 mm
M8×1.25 1.25 mm 0.677 mm 0.767 mm
M10×1.5 1.5 mm 0.812 mm 0.920 mm
1/4-20 1.27 mm 0.687 mm 0.779 mm

The values are arithmetic from the basic profile in ISO 68-1:2023, with the 1/4-20 row using its 1.27 mm pitch and the same 60° profile, not measurements of a particular CAD model. A 0.5 mm pitch leaves a groove about half a millimetre deep at most, and the useful part of the V is smaller than that.

What does the tessellator do to a modelled thread?

The mesher places vertices on the exact surface and connects them with flat triangles. Its linear deflection is the maximum distance a triangle may sit from the true surface. When the deflection is large relative to the thread, the surface between crest and root is sampled by few chords, so the profile becomes a coarse polygon rather than a smooth V. The crest and root are edges of the B-rep, so the mesher still places vertices on them even when the surface between them is coarse.

At a deflection that is a fraction of the depth, the thread is sampled more finely. An M6×1.0 thread has a 0.541 mm internal depth; a 0.1 mm deflection is about a fifth of that, so the profile is represented by several chords rather than one. That may be enough to see a ridge in the slicer and not enough to form a thread. The OCCT mesh guide describes the linear and angular deflection that control this sampling.

Angular deflection controls how many facets run around the helix even when the chord allowance is loose. A mesh only samples the profile; it does not decide whether a nozzle can follow it.

Bar chart of STEP face counts against STL triangle counts for seven fixtures.
The cube and square tube stay near one triangle per face; the threaded plate, cylinder, sphere and rod do not. Counts read from the same fixtures.

Printer resolution limits

The printer has its own limit, and it is usually larger than the mesh error. Take a PrusaSlicer profile with a 0.4 mm nozzle, the 0.45 mm extrusion width Prusa’s knowledge base uses in its example, and a 0.2 mm layer. That line is almost as wide as the pitch of an M3 thread. The nozzle cannot enter a 0.5 mm groove and leave a sharp crest. The 0.2 mm layer stacks the same broad line around the helix, so the result is a rough spiral at best and a smear at worst.

Prusa’s knowledge base on layers and perimeters explains how extrusion width and layer height set what the machine can form. The same arithmetic applies to any FDM printer: a feature narrower than the extrusion width is approximated by the line, not reproduced by it. Resin printers can hold finer detail, but post-cure shrinkage and layer exposure still move a small thread, and a thread that fits before curing may not fit after.

The feature can survive the mesh and still fail in the print; the file is not the only place it is lost.

Does this converter keep threads?

It keeps the geometry, not a printable thread. The converter on this site runs occt-import-js with a fixed linear deflection of 0.001 of the average bounding-box dimension and an angular deflection of 0.5 rad, per the importer’s defaults, with no user control. On a 100 mm part that is 0.1 mm of linear deflection, about a fifth of the 0.541 mm depth of an M6×1.0 thread; on a 300 mm part it is 0.3 mm, over half the depth. The spiral remains in the output, but its facets get longer as the part grows, and a 0.4 mm nozzle cannot enter a 1 mm pitch regardless.

The output is binary STL in millimetres with no annotation channel. Cosmetic threads are not geometry, so they never enter the mesh at all. The 12 MB cap and the flattened assembly output are separate limits, but they point the same way: this is a print handoff, not a thread-preserving translation. If a thread is functional, do not rely on the STL to carry it. If the thread is cosmetic, a plain cylinder is what you wanted anyway.

The pilot-hole route

The reliable route for a printed thread is to print a plain hole and cut the thread with a tap. Model the hole at the tap-drill diameter for the thread, print it slightly undersized to allow for the printer’s own shrinkage, then tap. The tap drill calculator on this site converts an M2 to M12 callout into the pilot diameter and adds printed-hole compensation, so the tapped result lands closer to nominal.

Tapping is standard FDM practice: the printer cannot form the thread reliably even when the mesh contains it. The STEP can still hold the modeled thread for the drawing and the record; the print uses the pilot hole. For threads below M6, the calculator’s route is the dependable one. At M6 and up, a coarse thread printed at a fine layer height can work. Test it: hand-tighten three turns without slipping or stripping, then tighten to 2 N·m with a torque wrench and check for stripped threads. Record the layer height and whether the hole was tapped or printed.

How to check whether a thread survived

Section the STL through the hole axis in the slicer and look at the profile. A surviving thread shows a series of ridges or a spiral; a lost thread shows a straight cylinder wall. Measure the major and minor diameters across the section and compare them with the thread’s nominal values. If the section is a circle, the thread is gone.

The triangle count is a second clue. A modeled helical thread adds many small faces, so a converted file with a suspiciously low count for a threaded part probably simplified the feature away. The count does not prove the thread is correct, but a low count rules out a detailed one. Compare the STL section with the STEP section at the same scale before you decide to tap or re-export.

A baseline helps read that count. We converted five fixtures in Chrome on 13 November 2026: two with no thread, one external thread, and two threaded holes.

The threaded fixtures use a rounded ridge 0.3 mm high on a 5.4 mm core at 1 mm pitch. That is shallower than the 0.613 mm external depth of an ISO M6×1.0 thread, so it is the harder case for the mesher: a ridge this shallow is the first one a coarse deflection would flatten.

Fixture Feature Faces in the STEP Triangles in the STL
cube-20mm none 12 12
square-tube-20mm 8 × 8 through hole, planar walls 32 32
m6-threaded-rod-20mm external helical ridge, 0.3 mm high 27 46,296
m6-threaded-hole-400mm 5.4 mm hole, helical groove 0.3 mm deep 18 4,468
m6-threaded-hole-600mm same, in a 600 mm plate 18 4,678

The threaded rows are far above their face count, which is the signature of a curved swept surface resolved into triangles. The 20 mm rod has the most because its helical ridge is fully exposed; the two plates expose only the groove cut into the hole wall.

Reading 20 mm rod 400 mm plate 600 mm plate
Bounds 6 × 6 × 20.6 mm 400 × 400 × 10 mm 600 × 600 × 10 mm
Average bbox dimension 10.9 mm 270 mm 403 mm
Linear deflection (0.001 × average) 0.011 mm 0.27 mm 0.40 mm
STL triangles 46,296 4,468 4,678
STL bytes 2,314,884 223,484 233,984
Radius range at mid-span 2.7–3.0 mm 2.7–3.0 mm 2.7–3.0 mm
Source volume (OCCT) 508.548 mm³ 1,599,745.856 mm³ 3,599,745.852 mm³
admesh volume 506.552 mm³ 1,599,746.875 mm³ 3,599,755.000 mm³
PrusaSlicer 2.9.7 Manifold, 1 part Manifold, 1 part Manifold, 1 part
trimesh 4.12.2 Watertight, 506.553 mm³ Watertight, 1,599,749.515 mm³ Watertight, 3,599,749.431 mm³

The radial range is the direct check. A plain cylinder would show vertices at one radius; all three threaded outputs carry vertices at 2.7 mm (the crest) and 3.0 mm (the groove bottom). The 600 mm plate’s 0.40 mm deflection is larger than the 0.3 mm ridge, and the ridge is still in the mesh, because the crest and root are edges of the B-rep. The thread coarsens; it does not disappear.

Converter result panel for a 20 mm threaded rod: 46,296 triangles, 26,404 vertices, bounds 6 × 6 × 20.6 mm.
The threaded rod after conversion. The panel reports the spiral as 46,296 triangles; the radial check finds the ridge at 2.7–3.0 mm.

Fixtures: m6-threaded-rod-20mm.step, m6-threaded-hole-400mm.step and m6-threaded-hole-600mm.step. The rod’s STEP is 875,025 bytes and was built in CadQuery 2.4.0 on the OCCT 7.7.2 kernel; the plates are 602,994 and 601,342 bytes.

When a printed thread is the right choice

A printed thread can be acceptable for a large coarse thread, a low-load cover, or a part that will be assembled once. It is a poor choice for a fastener that will be cycled, a load-bearing joint, or a thread that has to hold a specific torque. In those cases, tap the printed hole or install a heat-set insert.

Decide tap-or-print before converting. If the thread matters, model the pilot hole and plan the tap; the STL is then a plain-hole part, and the converter’s limits do not matter. If the thread is only a callout on a drawing, convert the cylinder and let the note live in the STEP. Do not convert a modelled thread and assume the print will work: the triangles carry the spiral, the nozzle cannot.

By the steptostl.org Editor Team, reviewed 14 November 2026 by the converter maintainers. Editorial standards.

How this page was written: the thread depths were calculated from the ISO 68-1 basic profile, the printer limits come from Prusa’s documented extrusion behavior, and the deflection defaults come from the occt-import-js source. Five fixtures were converted in Chrome on 13 November 2026, and the step-to-STL test record lists every output: the two unthreaded fixtures, a 20 mm rod with a rounded helical ridge, and 400 mm and 600 mm plates with a threaded hole. The threaded fixtures were built in CadQuery 2.4.0 on OCCT 7.7.2; the STEP files were read back for face count, solid validity and volume, and the exported STLs were parsed for triangle count, bounds and the radial range of the thread vertices. The STLs were then opened in PrusaSlicer 2.9.7, admesh 0.98.5 and trimesh 4.12.2. No thread was printed or measured, and no slicer repair was run. AI-assisted drafting was used, and each claim was checked against those sources and runs.

Sources:

Related on this site: Checking a tessellated part: walls and clearances and when to send STEP instead of STL. See also Fusion 360 and SolidWorks: STEP export for print and Why a STEP file exports as a hollow shell in STL.

Try it on your own file

Open the STEP to STL CAD converter and drop a file. It runs in this tab; nothing is uploaded and no account is needed.

All posts