Skip to content

Instantly share code, notes, and snippets.

@mcancellieri
Created May 30, 2018 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcancellieri/352de1b5b070e927525a763d42b3d624 to your computer and use it in GitHub Desktop.
Save mcancellieri/352de1b5b070e927525a763d42b3d624 to your computer and use it in GitHub Desktop.
3D printing workshop OpenScad code
$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