From 7a57e259ab38d2bf92ac7b1a897637f0ccf82026 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Tue, 4 Feb 2014 15:14:07 +0100 Subject: full model: add example hdd diff --git a/full_model.scad b/full_model.scad index 4c848e6..dc9a523 100644 --- a/full_model.scad +++ b/full_model.scad @@ -1,6 +1,7 @@ include use +use use module rand_color(base, seed1=0, seed2=0, seed3=0) { @@ -42,3 +43,6 @@ for (y = [0:num_hdd_y-1]) translate([-tray_width/4, bar_thickness * 1.5, (y+1) * tray_height - bar_thickness/2]) rotate([0, 90, 0]) cylinder(h = (num_hdd_x + 0.5) * tray_width, r = rod_diameter/2, $fs=0.1); + +translate([bar_thickness + floor(num_hdd_x/2) * tray_width, -hdd_standout, bar_thickness + floor(num_hdd_y/2) * tray_height]) + color("Blue") hdd(); diff --git a/parameters.scad b/parameters.scad index 7dc102a..daea23a 100644 --- a/parameters.scad +++ b/parameters.scad @@ -1,6 +1,6 @@ // size of the array num_hdd_x = 4; -num_hdd_y = 4; +num_hdd_y = 3; // space above hdd available for air flow cooling_height = 10; @@ -23,8 +23,12 @@ rail_width = 15; rail_height = rail_width; rail_thickness = 1; +// assumed space deviation of the resulting form; used to leave space +// in holes so that screws and rods do not stuck +pla_epsilon = 0.1; + // dimension of a single hdd tray (hdd + space around) -tray_height = hdd_height + cooling_height + rail_thickness; +tray_height = hdd_height + max(cooling_height, 2 * bar_thickness + 10 * pla_epsilon); tray_width = hdd_width + bar_thickness; -pla_epsilon = 0.1; + -- cgit v0.10.1