Skip to content

Instantly share code, notes, and snippets.

@scottyob
Last active September 16, 2022 03:25
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 scottyob/3a38131d9a39113c618c51b5e8367c4d to your computer and use it in GitHub Desktop.
Save scottyob/3a38131d9a39113c618c51b5e8367c4d to your computer and use it in GitHub Desktop.
// All dimensions are in mm
width = 1.5;
cubeWidth = 20;
outerWidth = cubeWidth + width;
height = 5;
difference() {
cube([outerWidth, outerWidth, height], center = true);
cube([cubeWidth, cubeWidth, 20], center = true);
}
standWidth = width * 2;
standHeight = 20;
z = -1 * height/2;
translate([cubeWidth/2,cubeWidth/2, z]) {
cube([standWidth, standWidth, standHeight], center=false);
}
translate([cubeWidth/2 * -1 - standWidth,cubeWidth/2,z]) {
cube([standWidth, standWidth, standHeight], center=false);
}
translate([cubeWidth/2 * -1 - standWidth,cubeWidth/2 * -1 - standWidth,z]) {
cube([standWidth, standWidth, standHeight], center=false);
}
translate([cubeWidth/2,cubeWidth/2 * -1 - standWidth,z]) {
cube([standWidth, standWidth, standHeight], center=false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment