chiark / gitweb /
xeno-drivebay-bracket fancy wall shape
[reprap-play.git] / xeno-drivebay-bracket.scad
index 0f18a3b5ba7a1558c72d5669c141f38099ffd31b..3bbff794485c232007ef931b02bf7df643c92e28 100644 (file)
@@ -22,11 +22,14 @@ padw = 20;
 padl = padw;
 padholesz = 5.0;
 
-walll = basel;
 wallholeh = 6+14+2;
 wallholesz = 3.0; // fixme check
 wallholeslot = 4.5;
 
+walll = basel + webt + padl;;
+
+webw = min(basew, padw);
+
 module slothole(sz, slot, thick) {
   hull(){
     for (y = [-slot/2,slot/2]) {
@@ -48,16 +51,24 @@ module Bracket(){
   }
 
   difference(){
-    translate([0, -wallt, 0])
-      cube([walll, wallt, wallh]);
+    rotate([90,0,0]) {
+      linear_extrude(height=wallt){
+       polygon([[0,0],
+                [0, wallh/2 + wallholesz/2 + wallt + wallt],
+                [basel, wallh],
+                [walll, wallh],
+                [walll, wallh - padt - padt],
+                [basel + webt, 0]]);
+      }
+    }
 
     translate([basel/2, 0, wallholeh])
       rotate([90,90,0])
       slothole(wallholesz, wallholeslot, wallt);
   }
 
-  translate([basel-0.01, -basew, 0])
-    cube([webt+0.02, basew, wallh]);
+  translate([basel-0.01, -webw, 0])
+    cube([webt+0.02, webw, wallh]);
 
   translate([basel+webt, -padw, wallh-padt]) {
     difference(){