Skip to content

Instantly share code, notes, and snippets.

@marcolivierarsenault
Created July 18, 2022 12:43
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 marcolivierarsenault/947f20b915500142cfeeea1deea0531e to your computer and use it in GitHub Desktop.
Save marcolivierarsenault/947f20b915500142cfeeea1deea0531e to your computer and use it in GitHub Desktop.
//OpensCAD
car_diam = 63;
car_height = 90;
cup_diam = 74;
cup_height = 70;
wall = 2;
cup_floor = 3;
view = 0;
difference() {
union() {
cylinder (h = car_height, r=car_diam/2+wall, center = false, $fn=100);
translate([0, 0, car_height]) {
cylinder (h = cup_height + cup_floor, r=cup_diam/2+wall, center = false, $fn=100);
};
};
cylinder (h = car_height*10, r=car_diam/2, center = true, $fn=100);
translate([0, 0, car_height+ cup_floor]) {
cylinder (h = cup_height+2, r=cup_diam/2, center = false, $fn=100);
};
if (view == 1) translate([-100,0,-10]) {
cube([ 900,900,900]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment