summaryrefslogtreecommitdiff
path: root/tray.scad
diff options
context:
space:
mode:
Diffstat (limited to 'tray.scad')
-rw-r--r--tray.scad10
1 files changed, 6 insertions, 4 deletions
diff --git a/tray.scad b/tray.scad
index fa8f3ab..df0ab3c 100644
--- a/tray.scad
+++ b/tray.scad
@@ -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();
contact: Jan Huwald // Impressum