Skip to content

Instantly share code, notes, and snippets.

@FFY00
Last active December 7, 2018 18:09
Show Gist options
  • Save FFY00/b52b415337047cd1ca281f531ff27572 to your computer and use it in GitHub Desktop.
Save FFY00/b52b415337047cd1ca281f531ff27572 to your computer and use it in GitHub Desktop.
Screw Hole module for OpenSCAD
module screw_hole(d = 3, height = 30, $fn = 80) {
hull() {
// Down small
translate([0, -height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);
// Up small
translate([0, height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);
// Down big
translate([0, -height/2 + d, 0])
sphere(d = d, center = true, $fn = $fn);
// Up big
translate([0, height/2 - d, 0])
sphere(d = d, center = true, $fn = $fn);
}
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment