Last active
December 7, 2018 18:09
-
-
Save FFY00/b52b415337047cd1ca281f531ff27572 to your computer and use it in GitHub Desktop.
Screw Hole module for OpenSCAD
This file contains hidden or 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
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment