chiark / gitweb /
osstest-arm-net-bracket: Make number of slots in tongue configurable (nfc)
[reprap-play.git] / osstest-arm-net-bracket.scad
index 8d022bd726606e4f17e024f76580ccac0bf4d90f..4eccb829d140e57cffab36e493888fbf76ac5fdc 100644 (file)
@@ -21,12 +21,14 @@ holedia = 3.5;
 
 tongue2x = tongue2width - holedist;
 
-module Tongue(tw,tt,ad){
+module Tongue(tw,tt,ad,slots=2){
+  y0=thick+0.1;
+  yn=ad-ridgewidth-strapwidth;
   difference(){
     translate([-tw, 0, 0])
       cube([tw, ad, tt+strapthick]);
-    for (y=[thick+0.1, ad-ridgewidth-strapwidth])
-      translate([-tw-1, y, tt])
+    for (yi=[0:slots-1])
+      translate([-tw-1, y0 + (yn-y0)*yi/(slots-1), tt])
        cube([tw+2, strapwidth, strapthick+1]);
   }
 }