Skip to content

Instantly share code, notes, and snippets.

@devbyray
Created May 27, 2024 19:22
Show Gist options
  • Save devbyray/c689f58e5cbaa4ed0764d1566f02e405 to your computer and use it in GitHub Desktop.
Save devbyray/c689f58e5cbaa4ed0764d1566f02e405 to your computer and use it in GitHub Desktop.
OpenSCAD - Open Box
base_width = 50;
base_length = 30;
base_height = 10;
border_size = 2;
$fn = 50;
difference() {
// Main bucket
minkowski() {
cube([base_width, base_length, base_height], center = true);
sphere(1);
}
// Chop off top for creating flat surface
translate([0, 0, base_height])
cube([base_width + 5, base_length + 5, base_height + 2], center = true);
// Creating smooth empty inner space
minkowski() {
cube([base_width - border_size, base_length - border_size, base_height - border_size], center = true);
sphere(1);
}
// Chop off top for creating flat surface
translate([0, 0, base_height])
cube([base_width + 5, base_length + 5, base_height + 2], center = true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment