Created
August 25, 2017 02:36
-
-
Save adgaudio/e1190adc999571811dde8738daf2c8f5 to your computer and use it in GitHub Desktop.
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
// these double forward slashes are comments. you can write whatever you | |
// want in the text after the double slashes. | |
x = 10; | |
y = 20; | |
z = 5; | |
cube([x,y,z], center=true); | |
cube([x,y,z], center=false); | |
r = 3; | |
h = 10; | |
cylinder(r=r, h=h, center=false); | |
cylinder(r=r, h=h, center=true); | |
rotate([90,0,0]) | |
cylinder(r=r, h=h, center=false); | |
translate([10,-5,2]) | |
cylinder(r=r, h=h, center=false); | |
difference() { | |
cube([x,y,z], center=true); | |
cylinder(r=r, h=h, center=false); | |
} | |
intersection() { | |
cube([10,y,z], center=true); | |
cylinder(r=6, h=h, center=false); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good for class