Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created February 16, 2015 21:22
Show Gist options
  • Save Stemer114/af8ef63b8d10287c825f to your computer and use it in GitHub Desktop.
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
// 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