chiark / gitweb /
osstest-arm-net-bracket: wip t2streng - transpose so cutout works too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 28 Oct 2014 16:17:04 +0000 (16:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 28 Oct 2014 16:17:04 +0000 (16:17 +0000)
osstest-arm-net-bracket.scad

index f3b12c5..3be26d5 100644 (file)
@@ -46,12 +46,25 @@ module Tongue(tw,tt,ad,slots=2){
   }
 }
 
+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) {
+    hull(){
+      translate([-(tongue2width-t2strengwidth)/2, 0,0])
+       mirror([1,0,0])
+       cube([t2strengwidth,50,20]);
+    }
+  }
+}
+
 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 +83,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();