summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connector_front.scad28
-rw-r--r--full_model.scad7
-rw-r--r--parameters.scad4
3 files changed, 31 insertions, 8 deletions
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 <parameters.scad>
+
+use <connector_front.scad>
+
+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;
contact: Jan Huwald // Impressum