diff options
author | Jan Huwald <jh@sotun.de> | 2014-02-04 11:32:19 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2014-02-04 11:32:19 (GMT) |
commit | c6c73e8c8c7dca865a1bc3937e62b5fa33dd36f7 (patch) | |
tree | 93751ccd22b63544bf099afff3fe7a84c941dd59 /connector_front.scad | |
parent | 406a11c1adf8f54b2a41c4968253d2a5a29a0002 (diff) |
split into multiple files
Diffstat (limited to 'connector_front.scad')
-rw-r--r-- | connector_front.scad | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/connector_front.scad b/connector_front.scad index e15089d..413f90b 100644 --- a/connector_front.scad +++ b/connector_front.scad @@ -1,37 +1,7 @@ -// PARAMETERS +include <parameters.scad> -// space above hdd available for air flow -cooling_height = 10; - -// thickness of the support bar -bar_thickness = 10; - -// diameter of thread rod used for support -rod_diameter = 4; - -// dimensions of HDDs; not model-specific; current values are fake -hdd_width = 80; -hdd_height = 30; -hdd_length = 100; - -// dimensions of the L-shaped rail between front and back -rail_width = 15; -rail_height = rail_width; -rail_thickness = 1; - -// dimension of a single hdd tray (hdd + space around) -tray_height = hdd_height + cooling_height + rail_thickness; -tray_width = hdd_width + bar_thickness; - -pla_epsilon = 0.1; - - -// CONSTRUCTION - -module nipple(e = 0) { - rotate([0, 180, 0]) - cylinder(h = bar_thickness / 4 + e, r1 = bar_thickness / 4 + e, r2 = 0, $fs=0.1); -} +use <nipple.scad> +use <rail.scad> module half() difference() { union() { @@ -54,10 +24,8 @@ module half() difference() { } // receiver for rail - translate([bar_thickness/2 - rail_thickness, 0, bar_thickness - rail_thickness]) { - cube([rail_thickness, bar_thickness, rail_height]); - cube([rail_width, bar_thickness, rail_thickness]); - } + translate([bar_thickness/2 - rail_thickness, 0, bar_thickness - rail_thickness]) + rail(); // holes for thread rods (horizontal, vertical) translate([0, bar_thickness / 2, 0]) |