chiark / gitweb /
bike-lipo-box: rotate again so glands are at front for viewing while printing
[reprap-play.git] / osstest-arm-net-bracket.scad
index f3b12c5..54e7d3b 100644 (file)
@@ -9,13 +9,13 @@ thick = 4;
 tabover = 7+6;
 tabunder = 15;
 
-tabsidel = 7;
+tabsidel = 7+1;
 tabsider = 7+10;
 
 tonguethick = 4;
 tongue2thick = 5;
 strapthick = 2;
-strapwidth = 5;
+strapwidth = 5 + 0.35;
 ridgewidth = 2;
 
 hstrengthick = 2.5;
@@ -26,6 +26,11 @@ rcutoutside = 7+2 - 0.5;
 lcutoutside = 7-6.5 - 0.5;
 
 t2strengwidth = 10;
+t2strengwidtht = 4;
+t2strenglen = tongue2depth + 5;
+t2strengthicker = 1;
+
+strapholethicker = 1.5;
 
 holedia = 3.5;
 
@@ -42,16 +47,30 @@ module Tongue(tw,tt,ad,slots=2){
     }
     for (yi=[1:slots-1])
       translate([-tw-1, y0 + (yn-y0)*yi/(slots-1), tt])
-       cube([tw+2, strapwidth, strapthick+0.05]);
+       cube([tw+2, strapwidth, strapthick+strapholethicker]);
+  }
+}
+
+module Body(){
+  translate([-holedist-tabsider, 0, 0]) {
+    cube([tabsidel+tabsider+holedist, thick, tabunder+tabover]);
+    cube([tabsidel+tabsider+holedist, thick+hstrengdepth, hstrengthick]);
+  }
+  Tongue(tonguewidth,tonguethick,totaldepth,3);
+  translate([tongue2x,0,0])
+    Tongue(tongue2width,tongue2thick,tongue2depth+thick,5) {
+    mirror([1,0,0]) hull(){
+      translate([-(tongue2width-t2strengwidth)*0.05, 0,0]) 
+       cube([t2strengwidth,t2strenglen,
+             tongue2thick+strapthick+strapholethicker+t2strengthicker]);
+      cube([t2strengwidtht,thick+0.1,tabunder+tabover]);
+    }
   }
 }
 
 module Object(){
   difference(){
-    translate([-holedist-tabsider, 0, 0]) {
-      cube([tabsidel+tabsider+holedist, thick, tabunder+tabover]);
-      cube([tabsidel+tabsider+holedist, thick+hstrengdepth, hstrengthick]);
-    }
+    Body();
     translate([0,-25,tabunder+cutoutover]) {
       translate([-(holedist+rcutoutside), 0,0])
        mirror([1,0,0])
@@ -70,15 +89,6 @@ module Object(){
          cube(center=true,[10,40,10]);
       }
   }
-  Tongue(tonguewidth,tonguethick,totaldepth,3);
-  translate([tongue2x,0,0])
-    Tongue(tongue2width,tongue2thick,tongue2depth+thick,5) {
-    hull(){
-      translate([-(tongue2width-t2strengwidth)/2, 0,0])
-       mirror([1,0,0])
-       cube([t2strengwidth,50,20]);
-    }
-  }
 }
 
 Object();