Created
February 16, 2015 21:22
-
-
Save Stemer114/af8ef63b8d10287c825f to your computer and use it in GitHub Desktop.
openscad module to model countersunk screw (with head), useful for subtracting when constructing attachment bores
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// model countersunk screw for 3d printing | |
// useful for creating attachement bores | |
// which fit these screws | |
// default values are for 3mm x 20mm screw with 6mm head (3.2mm bore for tolerance) | |
module screw_countersunk( | |
l=20, //length | |
dh = 6, //head dia | |
lh = 3, //head length | |
ds = 3.2, //shaft dia | |
) | |
{ | |
union() { | |
cylinder(h=lh, r1=dh/2, r2=ds/2, $fn=6); | |
polyhole(h=l, d=ds); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment