chiark / gitweb /
xeno-drivebay-bracket: try again with no pad
[reprap-play.git] / xeno-drivebay-bracket.scad
index 4efb526150be9257751cc1276839750548ff5102..e00091f6204d133a79b7cd1e07d09c1ea0d4793d 100644 (file)
@@ -1,25 +1,25 @@
 // -*- C -*-
 
-basel = 18;
-basew = 22;
+basel = 16;
+basew = 24;
 baset = 4.0;
 
 wallt = 2.5;
 
 wallh = 42;
 
-baseholesz = 4;
-baseholeslot = 4.5;
+baseholesz = 3.7;
+baseholeslot = 6.5;
 baseholeslop = -0.5;
 
-topl = 20;
-
 holeslop = 0.5;
 
 webt = 2.5;
 
-padt = webt;
+pad = false;
 padw = 12;
+
+padt = webt;
 padl = padw;
 padholesz = 3.0;
 
@@ -27,17 +27,17 @@ wallholeh = 6+14+2;
 wallholesz = 3.0;
 wallholeslot = 4.5;
 
-walll = basel + webt + padl;;
+walll = basel + webt + (pad ? padl : -0.1);
 
 webw = min(basew, padw);
 
 module slothole(sz, slot, thick, csunk=true, slop=holeslop) {
   hull(){
     for (y = [-slot/2,slot/2]) {
-      translate([0,y,-0.05])
+      translate([0,y,-0.15])
        cylinder(r1=sz/2 + slop,
                 r2=sz/2 + (csunk ? thick : 0) + slop,
-                h=thick+0.10);
+                h=thick+0.30);
     }
   }
 }
@@ -52,6 +52,7 @@ module Bracket(){
   }
 
   difference(){
+    translate([0.1, 0.3, 0.1])
     rotate([90,0,0]) {
       linear_extrude(height=wallt){
        polygon([[0,0],
@@ -80,11 +81,13 @@ module Bracket(){
     }
   }
 
-  translate([basel+webt, -padw, wallh-padt]) {
-    difference(){
-      cube([padl, padw, padt]);
-      translate([padl/2, padw/2, -1])
-       cylinder(r=padholesz/2 + holeslop, h=padt+2);
+  if (pad) {
+    translate([basel+webt, -padw, wallh-padt]) {
+      difference(){
+       cube([padl, padw, padt]);
+       translate([padl/2, padw/2, -1])
+         cylinder(r=padholesz/2 + holeslop, h=padt+2);
+      }
     }
   }
 }
@@ -107,4 +110,4 @@ module Kit(){ ////toplevel
 }
 
 //Kit();
-BracketR();
+//BracketR();