Model lid

This commit is contained in:
Starbeamrainbowlabs 2019-06-18 16:27:13 +01:00
parent 921f6479aa
commit c19bc7a0db

View file

@ -48,6 +48,9 @@ offset_power_reg = [
wall_thickness
];
offset_lid = [ box_outside[0] + 25, 0, 0 ];
//offset_lid = [ 0, 0, box_outside[2] + 25 ];
// -------------------------------------------
@ -91,7 +94,6 @@ module corner_piece() {
// Box
// -------------------------------------------
union() {
difference() {
cube(box_outside);
@ -204,4 +206,32 @@ translate(offset_power_reg) {
]) corner_piece();
}
}
// Lid
// -------------------------------------------
translate(offset_lid) {
difference() {
cube([ box_outside[0], box_outside[1], wall_thickness * 1.5 ]);
translate([0, 0, -0.1]) union() {
inset = corner_piece_size / 2 + wall_thickness;
translate([
inset,
inset,
]) cylinder(h = screw_length, d = screw_diameter, $fn = 25);
translate([
box_outside[0] - inset,
inset,
]) cylinder(h = screw_length, d = screw_diameter, $fn = 25);
translate([
box_outside[0] - inset,
box_outside[1] - inset
]) cylinder(h = screw_length, d = screw_diameter, $fn = 25);
translate([
inset,
box_outside[1] - inset
]) cylinder(h = screw_length, d = screw_diameter, $fn = 25);
}
}
}