summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-26 19:17:58 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-26 19:17:58 (UTC)
commit7fbe9cfcee18f826b71968b5e5a86ce509ebcaa6 (patch) (unidiff)
tree5e34bb2fe5e2177c9c0c552875af35e190f9fabd
parent1b9f8d6ae7e1e86d61ff92faaf281f6fb81a2831 (diff)
downloadextrudery-7fbe9cfcee18f826b71968b5e5a86ce509ebcaa6.zip
extrudery-7fbe9cfcee18f826b71968b5e5a86ce509ebcaa6.tar.gz
extrudery-7fbe9cfcee18f826b71968b5e5a86ce509ebcaa6.tar.bz2
made some more use of min_xy_shell
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad4
1 files changed, 2 insertions, 2 deletions
diff --git a/another.scad b/another.scad
index 55fda78..b2e6c74 100644
--- a/another.scad
+++ b/another.scad
@@ -72,25 +72,25 @@ module the_extruder(
72 left=false, 72 left=false,
73 vitamins = true, 73 vitamins = true,
74 supports = false, bridges = true, 74 supports = false, bridges = true,
75 tensioner = true, 75 tensioner = true,
76 debug = false 76 debug = false
77) { 77) {
78 fnd = 2*PI; fnr = 2*fnd; 78 fnd = 2*PI; fnr = 2*fnd;
79 79
80 idler_filament_offset = filament_path_d/2; // -filament_offset; 80 idler_filament_offset = filament_path_d/2; // -filament_offset;
81 lever_shell = mount_screwhead_h+0.5; 81 lever_shell = mount_screwhead_h+0.5;
82 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); 82 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
83 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie 83 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie
84 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+extrusion_width; 84 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell;
85 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) 85 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
86 sqrt(c*c+pow(a-c,2)); 86 sqrt(c*c+pow(a-c,2));
87 longwing_travel = idler_travel*longwing/shortwing; 87 longwing_travel = idler_travel*longwing/shortwing;
88 h_ = (pulley_d+idler_d)/(2*sqrt(2)); 88 h_ = (pulley_d+idler_d)/(2*sqrt(2));
89 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); 89 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
90 spring_dl = idler_travel*longwing/ri; 90 spring_dl = idler_travel*longwing/ri;
91 // finger and spring support 91 // finger and spring support
92 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); 92 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2);
93 93
94 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; 94 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1;
95 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; 95 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1;
96 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; 96 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
@@ -400,25 +400,25 @@ module the_extruder(
400 translate([0,y-extrusion_width/2,0]) 400 translate([0,y-extrusion_width/2,0])
401 cube(size=[gearbox_d,extrusion_width,body_h]); 401 cube(size=[gearbox_d,extrusion_width,body_h]);
402 }else{ // radial 402 }else{ // radial
403 for(zr=[-65:(65+50)/7:50]) 403 for(zr=[-65:(65+50)/7:50])
404 rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) 404 rotate([0,0,zr]) translate([0,-extrusion_width/2,0])
405 cube(size=[gearbox_d,extrusion_width,body_h]); 405 cube(size=[gearbox_d,extrusion_width,body_h]);
406 } 406 }
407 } 407 }
408 408
409 }//body module 409 }//body module
410 410
411 module springpad() { 411 module springpad() {
412 smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; 412 smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell;
413 bigd = spring_d+spring_d_clearance/2; 413 bigd = spring_d+spring_d_clearance/2;
414 hf = (bigd-smalld)/2; 414 hf = (bigd-smalld)/2;
415 h = hf*3.5; 415 h = hf*3.5;
416 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) 416 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation])
417 rotate([0,90,0]) difference() { 417 rotate([0,90,0]) difference() {
418 union() { 418 union() {
419 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); 419 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
420 translate([0,0,hf-epsilon]) 420 translate([0,0,hf-epsilon])
421 cylinder(d=bigd,h=h-hf,$fn=fnd*bigd); 421 cylinder(d=bigd,h=h-hf,$fn=fnd*bigd);
422 translate([0,0,h]) 422 translate([0,0,h])
423 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 423 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
424 l = body_h-ls_z; 424 l = body_h-ls_z;