Skip to content

Instantly share code, notes, and snippets.

@marcolivierarsenault
Last active November 21, 2020 01:11
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/72288e07173b002f2b76226a3cd16918 to your computer and use it in GitHub Desktop.
Save marcolivierarsenault/72288e07173b002f2b76226a3cd16918 to your computer and use it in GitHub Desktop.
bill_height = 69.85;
bill_width = 152.4;
space = 3;
cutout = 25;
walls = 5;
view = 1;
//Demo
//walls = 3;
//view = 1;
//Real
//walls = 25;
//view = 0;
difference() {
//Default shape
cube([bill_height + space + 2*walls, bill_width + space + 2*walls, space+ 2*walls]);
//Space For Bill
translate([walls, walls, walls]) {
cube([ bill_height + space, bill_width+space, space]);
};
//Cutout
if (view == 1) translate([(bill_height + 2*walls + space - cutout)/2, walls-2, -1]) {
cube([ cutout, cutout, 3*cutout]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment