// Author: Carlos GarcĂ­a Saura // Based on the Y axis bearing idler from RepRap Wallace $fn=50; pieceThickness=10; bearingScrewMetric=3.6; bearingScrewDistance=31.5; rodDistance=60; rodThickness=8.3; radius=rodThickness-1; bearingScrewOffset=rodDistance/2-bearingScrewDistance/2; difference() { union() { //cube([0.001,rodDistance,1]); cylinder(r=radius,h=pieceThickness); translate([0,rodDistance,0]) cylinder(r=radius,h=pieceThickness); translate([-2,0,0]) cube([radius,rodDistance,pieceThickness]); } //Rod drills cylinder(r=rodThickness/2,h=50+pieceThickness,center=true); translate([0,rodDistance,0]) cylinder(r=rodThickness/2,h=50+pieceThickness,center=true); //Bearing drills rotate([0,90,0]) translate([-pieceThickness/2,bearingScrewOffset,0]) cylinder(r=bearingScrewMetric/2,h=50+pieceThickness,center=true); rotate([0,90,0]) translate([-pieceThickness/2,bearingScrewDistance+bearingScrewOffset,0]) cylinder(r=bearingScrewMetric/2,h=50+pieceThickness,center=true); }