diff options
author | Jan Huwald <jh@sotun.de> | 2014-02-11 14:56:36 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2014-02-11 14:56:36 (GMT) |
commit | ca2f77bfabd2fc53545c4f241d5747902f4c1fe8 (patch) | |
tree | 50c1e30d3d516a6d69aeb31aafadbfdbc253149d | |
parent | 0cad8e469e893f87f683eaf48435cd12eccf4f42 (diff) |
full model: fix positions
-rw-r--r-- | full_model.scad | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/full_model.scad b/full_model.scad index 7f139d4..471a009 100644 --- a/full_model.scad +++ b/full_model.scad @@ -31,10 +31,14 @@ translate([bar_thickness/2 + x*tray_width, 0, y*tray_height]) { // internal elements (that have nothing right of the last hdd column) if (x != num_hdd_x) { // rails - rand_color([0.7, 0.7, 0.7], -x, y) translate([bar_thickness - rail_thickness, 0, bar_thickness - rail_thickness]) - rail(); - rand_color([0.7, 0.7, 0.7], x, -y) translate([tray_width + rail_thickness, 0, bar_thickness - rail_thickness]) - mirror() rail(); + rand_color([0.7, 0.7, 0.7], -x, y) + translate([bar_thickness/2 - rail_thickness, 0, bar_thickness - rail_thickness]) + rail(); + + rand_color([0.7, 0.7, 0.7], x, -y) + translate([tray_width + rail_thickness - bar_thickness/2, 0, bar_thickness - rail_thickness]) + mirror() + rail(); // backplane (to be inserted into the back connector) translate([bar_thickness + backplane_hoffset, hdd_length - hdd_standout, @@ -48,9 +52,10 @@ for (x = [0:num_hdd_x]) translate([bar_thickness/2 + x * tray_width, bar_thickness/2, -tray_height/2]) cylinder(h = (num_hdd_y + 1) * tray_height, r = rod_diameter/2, $fs=0.1); +// vertical front screws for (x = [0:num_hdd_x-1]) for (y = [0:num_hdd_y-1]) - translate([(x + 0.5) * tray_width - bar_thickness/2, bar_thickness * 1.5, (y+1) * tray_height - bar_thickness/2]) + translate([(x + 0.5) * tray_width - bar_thickness, bar_thickness * 1.5, (y+1) * tray_height - bar_thickness/2]) rotate([0, 90, 0]) cylinder(h = 3 * bar_thickness, r = rod_diameter/2, $fs=0.1); |