Skip to content

Instantly share code, notes, and snippets.

@schas002
Last active October 5, 2017 10:35
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 schas002/ec72ca7ce212f641113baa9a1a8cf1bc to your computer and use it in GitHub Desktop.
Save schas002/ec72ca7ce212f641113baa9a1a8cf1bc to your computer and use it in GitHub Desktop.
OpenSCAD cup model.
difference() {
union() {
difference() {
sphere(20);
translate([0, 0, 20]) {
cube(40, true);
}
}
translate([15, 0, -10]) {
rotate([90, 0, 0]) {
difference() {
cylinder(3.14159, r = 7.5);
cylinder(3.14159, r = 7.5 - 3.14159);
}
}}
}
sphere(20 - 3.14159);
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment