diff options
author | Jan Huwald <jh@sotun.de> | 2015-02-20 10:04:45 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2015-02-20 10:04:45 (GMT) |
commit | c8d30e2dab7a1c513db9a76d5e00c303e960034c (patch) | |
tree | 55ab39848b0eacbd299946dead2fb08e38d4d701 /tray.scad | |
parent | 645f6a493cccc2714678742b1f292446d0c6350e (diff) |
add version of the front with capped bottom to save space
Diffstat (limited to 'tray.scad')
-rw-r--r-- | tray.scad | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -20,7 +20,9 @@ spc_width=3; support_bar_width = 10; -module front() { +module front(capped_bottom=true) { + total_height = num_hdd_y*H + (capped_bottom ? 2 : hrail_height); + translate([0, 0, capped_bottom ? -(hrail_height/2 - 3) : -hrail_height/2]) intersection() { union() { translate([0, 0, 0*H]) @@ -34,8 +36,8 @@ module front() { tray(front_depth, inlet=[-1], rail=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, front_depth, total_height]); } } @@ -163,4 +165,4 @@ module hdd_inlet(D) cylinder(r=R, h=W, center=true); } -front();
\ No newline at end of file +tray(); |