Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created October 23, 2016 14:27
Show Gist options
  • Save Stemer114/0604b2aa2be224637312d5c902175007 to your computer and use it in GitHub Desktop.
Save Stemer114/0604b2aa2be224637312d5c902175007 to your computer and use it in GitHub Desktop.
countersunk screw
//counter-sunk screw
//(standing upside down on its head)
//defaults are for 3x20mm torx screw
module countersunk_screw(
l=20, //total length (including head)
dH = 6, //head dia
lH = 3, //head length
dB = 3.2, //bolt dia (with tolerance)
lS = 0 //support thickness if any (set this to layer thickness for upside down printing)
)
{
union() {
//head
cylinder(r1=dH/2, r2=dB/2, h=lH);
//bolt
translate([0, 0, lH+lS])
polyhole(h=l-lH-lS, d=dB);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment