diff options
author | Jan Huwald <jh@sotun.de> | 2015-03-05 11:56:34 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2015-03-05 11:56:34 (GMT) |
commit | 4d294726f36b73ae7a7e8db8283b68aa2f53c772 (patch) | |
tree | 873e1cff6c07915c8a9130d30a5eeb7a37026bda | |
parent | 36a4ff3ebe9620e070bc451d51831a472db79928 (diff) |
implement back
-rw-r--r-- | tray.scad | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -35,22 +35,24 @@ module front(capped_bottom=true) { } } -module back() { - intersection() { +module back(capped_bottom=true) { + total_height = num_hdd_y*H + (capped_bottom ? 4 : hrail_height); + translate([0, 0, capped_bottom ? -(hrail_height/2 - 3) : -hrail_height/2]) + intersection() { union() { translate([0, 0, 0*H]) - tray(back_depth, inlet=[1], power_hole=false); + tray(back_depth, inlet=[1], power_hole=false, support_bar=false, straps=false); for (i = [1:num_hdd_y-1]) translate([0, 0, i*H]) - tray(back_depth, power_hole=false); + tray(back_depth, power_hole=false, straps=false); translate([0, 0, num_hdd_y*H]) - tray(back_depth, inlet=[-1], rail=false, power_hole=false); + tray(back_depth, inlet=[-1], rail=[1], power_hole=false, straps=false); } - translate([0, 0, num_hdd_y*H/2]) - ccube([2*W, front_depth, num_hdd_y*H + hrail_height]); + translate([0, 0, num_hdd_y*H/2 + (capped_bottom ? (hrail_height/2 - 2) : 0)]) + ccube([2*W, back_depth, total_height]); } } @@ -108,7 +110,7 @@ union() { for (i = [0,1]) mirror([i, 0, 0]) translate([-hdd_width/2 - rail_thickness, -D, hrail_height/2 - rail_thickness - j*H]) - # rail(); + rail(); // female side connectors for (i = [-1,1]) |