From a89d060d468e9a18aac46e7ee26d818919491aa0 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Tue, 4 Feb 2014 12:58:37 +0100 Subject: add full model of hdd cage (unfinished), add border cases diff --git a/connector_front.scad b/connector_front.scad index 56c7431..c3382cc 100644 --- a/connector_front.scad +++ b/connector_front.scad @@ -41,15 +41,27 @@ module half() difference() { translate([rail_width, bar_thickness / 2, tray_height]) nipple(pla_epsilon); } -difference() { - union() { - half(); - mirror() half(); + +module front_connector( + border_left = false, + border_right = false, + border_top = false, + border_bottom = false +) { + difference() { + union() { + half(border_right); + mirror() half(border_left); + } + + // female leftward positioning nippel + if (!border_left) + translate([-tray_width/2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(pla_epsilon); } - // female leftward positioning nippel - # translate([-tray_width/2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(pla_epsilon); + // male rightward positioning nippel + if (!border_right) + translate([tray_width / 2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(); } -// male rightward positioning nippel -translate([tray_width / 2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(); +front_connector(border_right=true); \ No newline at end of file diff --git a/full_model.scad b/full_model.scad new file mode 100644 index 0000000..368b82c --- /dev/null +++ b/full_model.scad @@ -0,0 +1,7 @@ +include + +use + +for (x = [0:num_hdd_x-1]) + for (y = [0:num_hdd_x-1]) + translate([x*tray_width, 0, y*tray_height]) front_connector(); diff --git a/parameters.scad b/parameters.scad index cd4f964..4164a0d 100644 --- a/parameters.scad +++ b/parameters.scad @@ -1,3 +1,7 @@ +// size of the array +num_hdd_x = 4; +num_hdd_y = 4; + // space above hdd available for air flow cooling_height = 10; -- cgit v0.10.1