chiark / gitweb /
osstest-arm-net-bracket: break out Tongue (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 23 Oct 2014 16:19:04 +0000 (17:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 23 Oct 2014 16:19:04 +0000 (17:19 +0100)
osstest-arm-net-bracket.scad

index 6e88ffc..21cc748 100644 (file)
@@ -16,6 +16,16 @@ ridgewidth = 2;
 
 holedia = 3.5;
 
+module Tongue(tw,tt,ad){
+  difference(){
+    translate([-tw, 0, 0])
+      cube([tw, ad, tt+strapthick]);
+    for (y=[thick+0.1, totaldepth-ridgewidth-strapwidth])
+      translate([-tw-1, y, tt])
+       cube([tw+2, strapwidth, strapthick+1]);
+  }
+}
+
 module Object(){
   difference(){
     translate([-holedist-tabside, 0, 0])
@@ -25,13 +35,7 @@ module Object(){
        rotate([-90,0,0])
        cylinder(r= holedia/2+0.5, h=thick+2, $fn=20);
   }
-  difference(){
-    translate([-tonguewidth, 0, 0])
-      cube([tonguewidth, totaldepth, tonguethick+strapthick]);
-    for (y=[thick+0.1, totaldepth-ridgewidth-strapwidth])
-      translate([-tonguewidth-1, y, tonguethick])
-       cube([tonguewidth+2, strapwidth, strapthick+1]);
-  }
+  Tongue(tonguewidth,tonguethick,totaldepth);
 }
 
 Object();