chiark / gitweb /
xeno-drivebay-bracket fancy web shape, kit, etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Oct 2012 18:59:58 +0000 (19:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Oct 2012 18:59:58 +0000 (19:59 +0100)
xeno-drivebay-bracket.scad

index 3bbff79..cf2ea7b 100644 (file)
@@ -67,8 +67,17 @@ module Bracket(){
       slothole(wallholesz, wallholeslot, wallt);
   }
 
-  translate([basel-0.01, -webw, 0])
-    cube([webt+0.02, webw, wallh]);
+  translate([basel-0.01, 0, 0]) {
+    rotate([90,0,90]) {
+      linear_extrude(height=webt+0.02) {
+       polygon([[-basew, 0],
+                [-basew, baset],
+                [-webw, wallh],
+                [0, wallh],
+                [0, 0]]);
+      }
+    }
+  }
 
   translate([basel+webt, -padw, wallh-padt]) {
     difference(){
@@ -79,4 +88,21 @@ module Bracket(){
   }
 }
 
-Bracket();
+module BracketR(){ ////toplevel
+  rotate([-90,0,0]) Bracket();
+}
+
+module BracketL(){ ////toplevel
+  mirror([1,0,0]) BracketR();
+}
+
+module Kit(){ ////toplevel
+  for (y=[0, -wallh-5]) {
+    translate([0,y,0]) {
+      translate([5,0,0]) BracketR();
+      BracketL();
+    }
+  }
+}
+
+Kit();