From: Ian Jackson Date: Thu, 23 Oct 2014 16:25:57 +0000 (+0100) Subject: osstest-arm-net-bracket: Make number of slots in tongue configurable (nfc) X-Git-Tag: filamentspool-v2-release~310 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=08244f158ace5b0e9f6186e64cb83924107ecbd7 osstest-arm-net-bracket: Make number of slots in tongue configurable (nfc) --- diff --git a/osstest-arm-net-bracket.scad b/osstest-arm-net-bracket.scad index 8d022bd..4eccb82 100644 --- a/osstest-arm-net-bracket.scad +++ b/osstest-arm-net-bracket.scad @@ -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]); } }