summaryrefslogtreecommitdiff
path: root/tray.scad
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2015-02-25 21:48:02 (GMT)
committerJan Huwald <jh@sotun.de>2015-02-25 21:48:02 (GMT)
commit1eb220fe33b0a119773d6fd038a7df5076f3f50b (patch)
tree33d51ac3ff6e4f7145150f54303e70a30c74c7a9 /tray.scad
parente131fdf82f6eeadd7da55e72da3e84ee989eaf82 (diff)
fix tray recepticle
Diffstat (limited to 'tray.scad')
-rw-r--r--tray.scad13
1 files changed, 6 insertions, 7 deletions
diff --git a/tray.scad b/tray.scad
index 4b0d89c..b5e59f2 100644
--- a/tray.scad
+++ b/tray.scad
@@ -15,7 +15,7 @@ SW=5;
SH=1.5;
module front(capped_bottom=true) {
- total_height = num_hdd_y*H + (capped_bottom ? 2 : hrail_height);
+ 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() {
@@ -27,7 +27,7 @@ module front(capped_bottom=true) {
tray(front_depth);
translate([0, 0, num_hdd_y*H])
- tray(front_depth, inlet=[-1], rail=false);
+ tray(front_depth, inlet=[-1], rail=[1]);
}
translate([0, 0, num_hdd_y*H/2 + (capped_bottom ? (hrail_height/2 - 2) : 0)])
@@ -56,7 +56,7 @@ module back() {
module ccube(x) cube(x, center=true);
-module tray(D, power_hole=true, straps=true, inlet=[-1,1], rail=true, support_bar=true)
+module tray(D, power_hole=true, straps=true, inlet=[-1,1], rail=[0,1], support_bar=true)
union() {
difference() {
union() {
@@ -86,7 +86,7 @@ union() {
for (i = [-1, 1])
translate([i * (hdd_width/2 + SH/2 - epsilon), 0, -hrail_height*3/4])
rotate([0, 90, 0])
- # strap_hole(D);
+ strap_hole(D);
}
// hole for support bar
@@ -106,12 +106,11 @@ union() {
}
// space for rail
- if (rail)
+ for (j = rail)
for (i = [0,1])
- for (j = [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])
contact: Jan Huwald // Impressum