You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.4 KiB
OpenSCAD
59 lines
1.4 KiB
OpenSCAD
5 years ago
|
wall = 1;
|
||
|
|
||
|
box_width = 190;
|
||
|
box_depth = 115;
|
||
|
box_height = 55;
|
||
|
box_height_offset = -5;
|
||
|
|
||
|
bar_width = 15;
|
||
|
bar_depth = 95;
|
||
|
bar_height = 9;
|
||
|
bar_distance = 125;
|
||
|
bar_offset = (box_width - bar_distance - 2 * bar_width) / 2 + (bar_width / 2);
|
||
|
|
||
|
/*
|
||
|
translate([0, 30, -box_height_offset]) {
|
||
|
difference() {
|
||
|
union() {
|
||
|
translate([bar_offset, 0, 0])
|
||
|
cube([bar_width, bar_depth, bar_height]);
|
||
|
|
||
|
translate([bar_offset + bar_distance, 0, 0])
|
||
|
cube([bar_width, bar_depth, bar_height]);
|
||
|
}
|
||
|
|
||
|
translate([0, bar_depth - 85, -1])
|
||
|
cube([box_width, 10, 4]);
|
||
|
|
||
|
translate([0, bar_depth - 20, -1])
|
||
|
cube([box_width, 10, 4]);
|
||
|
}
|
||
|
|
||
|
translate([bar_offset - 4 * wall, 0, bar_height])
|
||
|
cube([bar_width + 4 * wall, bar_depth, wall]);
|
||
|
|
||
|
translate([bar_offset + bar_distance, 0, bar_height])
|
||
|
cube([bar_width + 4 * wall, bar_depth, wall]);
|
||
|
|
||
|
translate([0, bar_depth, box_height_offset])
|
||
|
cube([box_width, wall, box_height]);
|
||
|
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
difference() {
|
||
|
cube([box_width, box_depth, box_height]);
|
||
|
|
||
|
translate([wall, wall, -wall])
|
||
|
cube([box_width - 2 * wall, box_depth, box_height]);
|
||
|
|
||
|
translate([(box_width - 30) / 2, -wall, (box_height - 20) / 2])
|
||
|
cube([30, 4 * wall, 20]);
|
||
|
}
|
||
|
|
||
|
translate([0, 0, -box_height_offset])
|
||
|
cube([bar_offset - 1, box_depth - 6 * wall, bar_height - 1]);
|
||
|
|
||
|
translate([box_width - (bar_offset - 1), 0, -box_height_offset])
|
||
|
cube([bar_offset - 1, box_depth - 6 * wall, bar_height - 1]);
|