Created
May 30, 2018 10:56
-
-
Save mcancellieri/352de1b5b070e927525a763d42b3d624 to your computer and use it in GitHub Desktop.
3D printing workshop OpenScad code
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
$fn=128; | |
////// | |
cylinder(h=5, r1=15, r2=13); | |
////// | |
cylinder(h=40, r1=8, r2=5); | |
////// | |
translate([0,0,45]) | |
////// | |
difference() { | |
union() { | |
sphere(10); | |
translate([0, 0, 10 * sin(20)]) | |
cylinder(h = 20, r1 = 10 * cos(20), r2 = 0); | |
} | |
////// | |
rotate([45, 0, 0]) | |
translate([-20, 0, 0]) | |
cube([40, 3, 40]); | |
} | |
////// | |
////// | |
translate([0, 0, 67]) | |
sphere(r = 2.5); | |
//// | |
// | |
// | |
// | |
// | |
////// | |
//module collar(){ | |
//translate([0, 0, 25]) | |
// intersection() { | |
// cylinder(h = 10, r1 = 15, r2 = 0); | |
// translate([0, 0, 7]) | |
// mirror([0, 0, 1]) | |
// cylinder(h = 10, r1 = 15, r2 = 0); | |
// } | |
//} | |
//////// | |
//collar(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment