Konubinix' opinionated web of thoughts

Box for King of Tokyo

fleeting

tag: learning 3D printing

Reusing the tea box and sizing it to 6.2 * 2.8 * 4.2

first try

the bottom layer is too weak

using OpenSCAD

http://fabacademy.org/2020/labs/barcelona/students/antoine-jaunard/computer-aided-design.html

Using its code, adjusting changing the variables and removing the lid, I get

$fn = 40;
length = 62;
width= 42;
height = 28;
radius = 3;
wallTickness = 1.5;

module roundedBox(length, width, height, radius) {
  dRadius = 2*radius;
  minkowski() {
    cube(size = [width-dRadius, length-dRadius, height]);
    cylinder(r = radius, h = 0.01);
  }
}

// box
translate([radius, radius, 0]) {
  difference () {
    roundedBox(length, width, height, radius);
    translate([wallTickness, wallTickness, wallTickness]) {
      roundedBox(length-wallTickness*2, width-wallTickness*2, height, radius);
    }
  }
}

Tue code for the lid is

// lid
translate([width*2 + radius, 0, 0]){
  mirror([1,0,0]) {
    translate([radius, radius, 0]) {
      union() {
        roundedBox(length, width, 1, radius);
        difference() {
          translate([wallTickness, wallTickness, 0]) {
            roundedBox(length-wallTickness*2, width-wallTickness*2, 4, radius);
          }
          translate([wallTickness*2, wallTickness*2, 0]) {
            roundedBox(length-wallTickness*4, width-wallTickness*4, 6, radius);
          }
        }
      }
    }
  }
}

This one is great.