Determine thread pitch based on threads per inch (TPI ... Diameter - (0.64952 × Pitch Distance), Minor Diameter ≈ Major Diameter - (1.3 × Pitch Distance) - Metric ISO: Pitch Diameter ≈ Major Diameter ...
This creates a vertical rod at the origin with external threads. It uses // metric standards by default. module ScrewThread(outer_diam, height, pitch=0, tooth_angle=30, tolerance=0.4, tip_height=0, ...