/* This is a tool to help rewind brushless motors */ // allviews main handle include include holder_h=30; // This holds the motor stator module holder(){ translate([0,0,holder_h-3]) cylinder(r=10,h=3); translate([0,0,holder_h-5]) cylinder(r=5,h=5); cylinder(r=3,h=holder_h); cylinder(r=5,h=5); cylinder(r=10,h=3); translate([-50,-5/2,-2]) cube([55,5,5]); translate([-50,-5/2,holder_h-3]) cube([55,5,5]); difference(){ translate([-40,-5/2,-2]) cube([10,5,holder_h]); translate([-35,-5,holder_h/2]) rotate([-90,0,0]) cylinder(r=2,h=20,$fn=20); } } module main(){ holder(); } module handle(){ } if (view=="main"){ main(); }else if (view=="handle"){ handle(); }