summaryrefslogtreecommitdiff
path: root/connector_front.scad
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2014-02-04 11:58:37 (GMT)
committerJan Huwald <jh@sotun.de>2014-02-04 11:58:37 (GMT)
commita89d060d468e9a18aac46e7ee26d818919491aa0 (patch)
tree007ee69d1a1d15e192ef377dfd38f4b8c1591efc /connector_front.scad
parent9eeb7724efed6a8f960713120b3ffd002950049d (diff)
add full model of hdd cage (unfinished), add border cases
Diffstat (limited to 'connector_front.scad')
-rw-r--r--connector_front.scad28
1 files changed, 20 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
contact: Jan Huwald // Impressum