January 30, 2019
Description
This is a fast and flexible thread-profile generator for OpenSCAD.
As usual, all this stuff also lives on my site: http://burningsmell.org/3d/lib/tsmthread/
TL/DR
include <tsmthread4.scad>;
// 5/8" 11TPI imperial threads, 3/4" long, ordinary thread profile
imperial() tsmthread(DMAJ=5/8+$OD_COMP, PITCH=1/11, L=3/4, PR=THREAD_UTS);
// TR30x3 trapezoidal threads
translate([50,0]) tsmthread(DMAJ=30+$OD_COMP, PITCH=3, L=59, PR=THREAD_TRAP);
// TR8 thread, 2mm pitch, 4 start
translate([0,50]) tsmthread(DMAJ=8+$OD_COMP, L=10, PITCH=2, PR=THREAD_TRAP, STARTS=4);
// Experimental: compensated leadscrew threads. Angle and depth must be specified.
comp_thread(DMAJ=9+$OD_COMP, L=5, PITCH=2, STARTS=4, A=30, H1=0.25, H2=0.25);
License:
Creative Commons - Attribution - Non-Commercial