A printed thread works when three numbers are right: the pitch is coarse enough for the nozzle, the nut carries a calibrated diametral clearance, and the two helices are clocked so their flanks do not collide. A printed snap fit works when the hook demands less deflection than the arm can survive, and the bend runs along the layers. Two demos prove both: a thread pair with an interference check, and a plug and socket that mate.

The Thread node

Thread lives under Solids. It generates a helical thread form along local Z, growing from the base unless centerZ is on, and it has two personalities selected by type: external produces a threaded shaft, and internal_cut produces the cutter shape you subtract from a body to make a nut or a tapped hole.

Table: Thread node options.

Option Meaning Default
majorDiameter Crest diameter of the profile; M8 is 8 6
pitch Axial distance between crests 1
starts Thread starts; multi-start raises the lead per turn 1
length Threaded length along local Z 10
tolerance Diametral clearance: subtracted from a bolt, added to a nut 0
threadDepthFactor, pressureAngle, tipRadius Profile depth, flank angle and crest rounding 0.65, 30, 0
topTaper, bottomTaper, taperAngle Lead-in chamfers on the thread ends off, off, 45
boreDiameter Hollow core for an external thread 0
circularSegments Angular resolution auto

The node also reports computed values: minor diameter, thread depth, lead angle and threads per length. Those appear in Object Properties and can be read by other expressions.

The demo bolt is a hexagonal polygon emitted as a solid with extrudeHeight, unioned with an external Thread positioned at headHeight. The nut is the same polygon minus an internal_cut Thread whose length is nutHeight + 2 so it clears both faces, the through-cutter rule from Oversize the Cutter applied to a helix.

Clearance, phase, and proof

tolerance is diametral. Put it on the cutter, bound to a calibrated variable, and leave the bolt nominal; the demo's threadClearance defaults to 0.5 mm, a safe first print, and 0.3 mm is a common calibrated value for a 0.4 mm nozzle in PLA. The Fits, Clearances, and Tolerances article explains why that number belongs to a printer profile rather than to the model.

A correct clearance is not proof that the pair assembles. Two helices only mesh when they are in phase: the nut's thread start must sit a whole number of turns from the bolt's, or the flanks land on each other. The demo derives the clocking from the geometry and applies it only when assembled is on:

nutPhase = mod((threadLength - nutHeight - 1) / threadPitch, 1) * 360
Nut.transform.rotation.z = assembled ? nutPhase : 0

The numerator is the axial distance between the two thread starts; its fractional part in pitches, times 360, is the angle the nut must turn.

Table: Interference check between Bolt_Thread and Nut on the demo, M8 by 1.25, clearance 0.3.

Nut clocking Intersection volume Minimum separation Verdict
0° 9.99 mm³ (1.5% of the thread) 0 interference
+72° 20.97 mm³ 0 interference
derived phase (288°) 0 0.072 mm clearance

The Interference check computes the exact Boolean intersection of two solids, which is the only honest way to read a helix; one cross-section slice is phase-dependent and can show a clean gap on a pair that jams a quarter turn later.

What thread geometry prints

Table: Thread rules of thumb for FDM. Calibrate on your own machine.

Rule Why
Pitch at least 1 mm at a 0.4 mm nozzle; coarse beats fine A flank has to be several layers tall to exist
M6 and larger, or a custom coarse thread Small metric threads are below the printer's resolution
Print the axis vertical A horizontal thread sags on the overhanging flank
topTaper on for a lead-in The first turn otherwise catches
tipRadius above zero Rounded crests print cleaner than knife edges
starts 2 to 4 for caps and jars A quarter turn engages; the lead angle stays printable
Diametral clearance 0.2 to 0.5 mm, calibrated Extrusion swell closes the gap

A test coupon of three or four nuts at different threadClearance values, printed in the production orientation, is a ten-minute print and settles the number for that material. Record it as the profile value, as Versioned Production recommends.

Threads demo
Threads demo
Threads demo

Toggle assembled to seat the nut on the bolt with its derived phase. Change threadClearance and re-run an interference check in the editor; the nut is clocked by nutPhase so the flanks never collide at the default clearance.

@p12/threads-and-snap-fits-demo
Toggle assembled to seat the nut on the bolt with its derived phase. Change threadClearance and re-run an interference check in the editor; the nut is clocked by nutPhase so the flanks never collide at the default clearance.

Snap fits: the cantilever and its strain

A cantilever snap fit is an arm that bends past a hook and springs back. The arm survives if the strain at its root stays below the material's allowable value, and for a straight arm of constant thickness the deflection that reaches that strain is[1]

ymax=ε L21.5 ty_{max} = \frac{\varepsilon\, L^{2}}{1.5\, t}

where LL is the free length, tt the root thickness and ε\varepsilon the allowable strain. The deflection the arm actually has to make is the hook's undercut less the clearance in the socket, and it must stay under ymaxy_{max}. The demo below exposes both sides of that comparison, and the strain the snap actually puts in the arm.

Table: Snap-fit variables in the demo.

Variable Expression Role
requiredDeflection hookUndercut - clearance readout
maxDeflection material * armLength^2 / (1.5 * armThickness) readout
strainAtSnap 1.5 * armThickness * requiredDeflection / armLength^2 readout, validator

material is a select whose values are guide strains: 2 percent for PLA, 3.5 for PETG, 4 for ABS and ASA, 6 for nylon. They are conservative single-flex values; a clip that must cycle hundreds of times wants roughly half. With the defaults, a 12 mm PLA arm 1.6 mm thick may deflect 1.2 mm; a 1.2 mm undercut with 0.2 mm of clearance asks for 1.0 mm, which puts 1.67 percent strain in the root and leaves 0.2 mm in hand. Shorten that arm to 8 mm and thicken it to 2 mm and the ceiling falls to 0.43 mm; the same hook now asks for more than twice what the arm can give, and the validator says so before the print does.

Read the formula before trusting an instinct about it. Capacity rises with the square of the free length and falls with thickness, so a long thin arm tolerates more travel than a short thick one, not less: that same PLA arm at 30 mm and 1 mm clears 12 mm. Stubby arms are what break clips.

The same strain also sets the forces. The force to hold one arm at its snap deflection is P=(b t2/6)(E ε/L)P = (b\,t^{2}/6)(E\,\varepsilon/L),[1] and the push to assemble follows from the ramp angle and friction as W=P (μ+tan⁡α)/(1−μtan⁡α)W = P\,(\mu + \tan\alpha)/(1 - \mu\tan\alpha), while the pull to release uses the retention angle in the same expression. Both are readouts in the demo. At the defaults each arm needs 16.6 N and the pair pushes home at about 35 N, and a 90 degree retention face reports permanent, because μtan⁡90∘\mu\tan 90^\circ self-locks: a square catch never comes apart by pulling, whatever the strain. Drop the retention angle to 45 and the readout turns into a number.

Three more rules do most of the remaining work.[2] Taper the arm to half its root thickness at the tip and it can deflect about 1.67 times further at the same strain. Put a fillet of at least half the thickness at the root, using the blend techniques, because the sharp inside corner is where clips crack. Print the arm flat so the bend happens along the layers, not across them; a clip printed standing up delaminates at the root, which is why the demo lays the whole plug on the bed with the arms bending sideways.

The hook's insertion face wants a 25 to 35 degree ramp and the retention face 45 degrees for a releasable clip or 90 for a permanent one; both are sliders on the demo, and each arm with its hook is one extruded profile from a path, the technique in Sketches to Solids. The socket is derived from the plug: cavity from the arms plus clearance, window edge one axial play beyond the retention face. Toggle assembled and the pair seats with the hooks in the windows; an interference check on it reports contact and no overlap.

Snap-fit plug and socket, printed flat
Project

Snap-fit plug and socket, printed flat

@p12/Snap-Fit-Flat-Demo
Snap-fit plug and socket, printed flat
Snap-fit plug and socket, printed flat

Push hookUndercut up or armLength down and watch strainAtSnap cross the material's limit. Drop retentionAngle below 90 and the release force appears. Turn assembled off to see the plug and socket apart; both print as modelled, flat on the bed, with the layers along the arms.

@p12/Snap-Fit-Flat-Demo
Push hookUndercut up or armLength down and watch strainAtSnap cross the material's limit. Drop retentionAngle below 90 and the release force appears. Turn assembled off to see the plug and socket apart; both print as modelled, flat on the bed, with the layers along the arms.

Where to go next

The hinge in Fits, Clearances, and Tolerances is the same calibrate-then-record discipline applied to a pin and bore. The parameter-space rules that keep a customer from ordering an arm that cannot flex are in Beyond Sliders. The clip's arm thickness is a wall, and Shell, Hollowing, and Wall Thickness has the extrusion-width rule it must respect.

References

  1. Snap-Fit Joints for Plastics: A Design Guide

    Cantilever deflection and strain formulas for constant and tapered sections.

    Back to reference
  2. How to Design and 3D Print Snap-Fit Joints for Enclosures, Boxes, Lids, and More

    Hook taper, edge rounding at the root, and print orientation guidance for snap-fit joints.

    Back to reference