Skip to content

Instantly share code, notes, and snippets.

@pathologicalhandwaving
Last active November 23, 2021 15:09
Show Gist options
  • Save pathologicalhandwaving/7c38a67a75b582204ee16f7b42f732e2 to your computer and use it in GitHub Desktop.
Save pathologicalhandwaving/7c38a67a75b582204ee16f7b42f732e2 to your computer and use it in GitHub Desktop.
OpenScad Thing
// Resolution
$fa = 1;
$fs = 0.4;
// Cube
//cube(size=10);
// Cube centered at origin
//cube(size=20,center=true);
// Rectangular Cuboid
// All angles are right angles
// Opposite faces are equal
//cube([5,10,20]);
// Rectangular Cuboid centered at Origin
cube([20,20,20],center=true);
// Another Cube centered at (10,10,10)
translate([10,10,10])
cube([20,20,20],center=true);
// Cylinder with height = h, radius = r
cylinder(h=2,r=20);
// Another Cylinder Translated
translate([14,14,18],center=true)
cylinder(h=2,r=20);
// Another Cylinder Rotated
rotate([90,0,0])
cylinder(h=2,r=20);
@pathologicalhandwaving
Copy link
Author

Thing

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