author | Michael Krelin <hacker@klever.net> | 2018-08-02 10:00:59 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-02 10:00:59 (UTC) |
commit | a04582d4c163c58bd779e02e3de624ccd1f643f4 (patch) (side-by-side diff) | |
tree | 313e0ce03058ccb664d76c6fac51c43a34651e6b | |
parent | 5457897c14fd5bff296bdfed4a2744655585a3ab (diff) | |
download | extrudery-a04582d4c163c58bd779e02e3de624ccd1f643f4.zip extrudery-a04582d4c163c58bd779e02e3de624ccd1f643f4.tar.gz extrudery-a04582d4c163c58bd779e02e3de624ccd1f643f4.tar.bz2 |
another: make supports optional
-rw-r--r-- | another.scad | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/another.scad b/another.scad index 85715db..2be24e4 100644 --- a/another.scad +++ b/another.scad @@ -43,25 +43,26 @@ module the_extruder( idler_clearance=1, pulley_clearance=2, lever_v_clearance=.7, // vertical clearance for the lever spring_d_clearance=1, protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion mount_screw_d_tolerance=.4, idler_v_tolerance=.5, knob_bore_d_tolerance=.6, what="lever", left=false, - vitamins = true + vitamins = true, + supports = false ) { lever_shell = mount_screwhead_h+0.5; lever_thickness=max(spring_d+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); lsd = idler_d-idler_clearance*2; longwing=gearbox_d/2+spring_d/2+lsd/2; h_ = (pulley_d+idler_d)/(2*sqrt(2)); ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); spring_dl = idler_travel*longwing/ri; filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; ls_z = filament_elevation; // leverspace mid-z body_h = max(protrusion_h+bore_l,mount_screw_l-mounthole_depth/2+mount_screwhead_h,ls_z*2); @@ -136,26 +137,25 @@ module the_extruder( // filament path place_idler() translate([-(idler_d+filament_path_d)/2,0,0]) rotate([90,0,0]) { cylinder(d=filament_path_d,h=3*gearbox_d,center=true,$fn=30); translate([0,-filament_path_d/2/sqrt(2),0]) rotate([0,0,45]) cube(size=[filament_path_d/2,filament_path_d/2,3*gearbox_d],center=true); } // idler space and mounting hole place_idler() { difference() { cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60); - // supports - for(y=[-lsd/2+extrusion_width:(lsd-2*extrusion_width)/3:lsd/2-extrusion_width]) + if(supports) for(y=[-lsd/2+extrusion_width:(lsd-2*extrusion_width)/3:lsd/2-extrusion_width]) translate([-lsd/2-1,y-extrusion_width/2,-idler_h/2-idler_v_tolerance/2-1]) cube(size=[lsd+2,extrusion_width,idler_h+idler_v_tolerance+2]); } cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=30); translate([0,0,lever_thickness/2-mount_screwhead_h]) cylinder(d=mount_screwhead_d,h=mount_screwhead_h+1,$fn=2*PI*mount_screwhead_d); } // mounting screw hole translate([mount_d/2,0,0]) cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=2*PI*mount_screw_d); // lever end @@ -265,25 +265,25 @@ module the_extruder( cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=PI*spring_d); translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=PI*spring_d); } //sphere(d=spring_d*3/4,$fn=PI*spring_d); *difference() { // spring support translate([0,-longwing,filament_elevation]) sphere(d=spring_d*3/4,$fn=PI*spring_d); } }//difference - intersection() { + if(supports) intersection() { difference() { translate([0,0,ls_z-ls_h/2-epsilon]) cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=2*PI*gearbox_d); cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); } // supports // TODO: hardcoded stuff below… if(false) { // parallel for(y=[-gearbox_d:4:gearbox_d]) translate([0,y-extrusion_width/2,0]) cube(size=[gearbox_d,extrusion_width,body_h]); }else{ // radial |