// -*- C -*-
function AxlePin_holerad() = 2;
+function AxlePin_zoffset(holerad=2, slop=0.5) = (holerad - slop)*0.7;
module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){
pinr = holerad - slop;
translate([-tabthick, axlerad, -holerad])
cube([tabthick*2, holerad*2, holerad*2]);
}
- translate([-50,-50, -pinr*0.7]) cube([100,100,50]);
+ translate([-50,-50,-AxlePin_zoffset(holerad,slop)])
+ cube([100,100,50]);
}
}