Created
May 27, 2024 19:22
-
-
Save devbyray/c689f58e5cbaa4ed0764d1566f02e405 to your computer and use it in GitHub Desktop.
OpenSCAD - Open Box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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