From 1eb220fe33b0a119773d6fd038a7df5076f3f50b Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Wed, 25 Feb 2015 22:48:02 +0100 Subject: fix tray recepticle diff --git a/parameters.scad b/parameters.scad index ec196bd..d402243 100644 --- a/parameters.scad +++ b/parameters.scad @@ -26,7 +26,7 @@ back_depth = 6; hdd_standout = 15; // dimensions of the L-shaped rail between front and back -rail_width = 20; +rail_width = 21; rail_height = rail_width; rail_thickness = 2; 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]) -- cgit v0.10.1