module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){
pinr = holerad - slop;
intersection(){
module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){
pinr = holerad - slop;
intersection(){
translate([0, -pinlen/2, 0]) rotate([-90,0,0])
cylinder(r=pinr, h=pinlen, $fn=10);
translate([-tabthick, axlerad, -holerad])
cube([tabthick*2, holerad*2, holerad*2]);
}
translate([0, -pinlen/2, 0]) rotate([-90,0,0])
cylinder(r=pinr, h=pinlen, $fn=10);
translate([-tabthick, axlerad, -holerad])
cube([tabthick*2, holerad*2, holerad*2]);
}
- translate([-50,-50,0]) cube([100,100,50]);
+ translate([-50,-50,-AxlePin_zoffset(holerad,slop)])
+ cube([100,100,50]);