Skip to content

Instantly share code, notes, and snippets.

@adgaudio
Created August 25, 2017 02:36
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 adgaudio/e1190adc999571811dde8738daf2c8f5 to your computer and use it in GitHub Desktop.
Save adgaudio/e1190adc999571811dde8738daf2c8f5 to your computer and use it in GitHub Desktop.
// 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);
}
@Creature89
Copy link

good for class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment