chiark / gitweb /
xeno-drivebay-bracket: ChannelBracket: wip
[reprap-play.git] / xeno-drivebay-bracket.scad
index 18b6586862b666bc3c9273a3c04408b099766130..8a51169b538311149dcabe75911b0ff4ee5a11ae 100644 (file)
@@ -100,6 +100,71 @@ module BracketL(){ ////toplevel
   mirror([1,0,0]) BracketR();
 }
 
+protinnerh = 37.5;
+protinnerw = 53;
+protd = 45;
+protbaset = 4;
+protwallt = 2;
+protlidt = protwallt;
+protwingd = 28;
+protwingw = 23;
+
+module RearCableProtector(){
+  for (x = [-protwallt, protinnerw]) {
+    translate([x, 0, 0]) {
+      cube([protwallt, protd, protinnerh+protlidt]);
+    }
+  }
+  translate([-(protwallt-0.1), 0, protinnerh])
+    cube([protinnerw + (protwallt-0.1)*2, protd, protlidt]);
+  for (lr = [1,0]) {
+    translate([(lr ? -(protwingw + protwallt) : protinnerw), 0, 0]) {
+      difference(){
+       translate([0, 0, 0])
+         cube([protwingw, protwingd, protbaset]);
+       translate([protwingw/2, protwingd/2, 0])
+         rotate([0,0, lr ? 45 : -45])
+         slothole(baseholesz, baseholeslot, baset, slop=baseholeslop);
+      }
+    }
+  }
+}
+
+module RearCableProtectorT(){ ////toplevel
+  rotate([90,0,0]) RearCableProtector();
+}
+
+chabd = 20;
+chablidw = 40;
+chabinnerh = 11;
+chabwallt = 2;
+chablidt = 2;
+chabwebt = 2.5;
+chabbaset = baset;
+chabbasew = 20;
+chabslot = 3;
+chablidholed = 3;
+
+module ChannelBracket(){
+  translate([0, -chabd, 0])
+    cube([chabwallt, chabd, chabinnerh+chablidt]);
+  translate([-chablidw, -chabd, chabinnerh]) {
+    difference(){
+      cube([chablidw + chabwallt - 0.1, chabd - 0.1, chablidt]);
+      translate([chablidw/2, chabd/2, -1])
+       cylinder(r=chablidholed/2, h=chablidt+2, $fn=20);
+    }
+  }
+  translate([chabwallt-0.1, -chabd, 0]) {
+    difference(){
+      cube([chabbasew, chabd-0.1, chabbaset]);
+      translate([chabbasew/2, (chabd-chabwebt)/2, 0])
+       rotate([0,0,90])
+       slothole(baseholesz, chabslot, baset, slop=baseholeslop);
+    }
+  }
+}
+
 module Kit(){ ////toplevel
   for (y=[0, -wallh-5]) {
     translate([0,y,0]) {
@@ -111,3 +176,4 @@ module Kit(){ ////toplevel
 
 //Kit();
 //BracketR();
+//RearCableProtectorT();