summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-09-01 14:46:43 (UTC)
committer Michael Krelin <hacker@klever.net>2018-09-01 14:46:43 (UTC)
commit8b0f9de8f05097c2dfa22088d187ac44aadcefc8 (patch) (unidiff)
tree633e650909a20b1777a9f3b54ed597ef65957881
parent6847b07f69c54d67a98e178db703c4b1f4e6bc67 (diff)
downloadextrudery-8b0f9de8f05097c2dfa22088d187ac44aadcefc8.zip
extrudery-8b0f9de8f05097c2dfa22088d187ac44aadcefc8.tar.gz
extrudery-8b0f9de8f05097c2dfa22088d187ac44aadcefc8.tar.bz2
comment
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad2
1 files changed, 1 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index 1811584..faa41da 100644
--- a/another.scad
+++ b/another.scad
@@ -74,49 +74,49 @@ module the_extruder(
74 vitamins = true, 74 vitamins = true,
75 bridges = true, 75 bridges = true,
76 debug = false, 76 debug = false,
77) { 77) {
78 fnd = 2*PI; fnr = 2*fnd; 78 fnd = 2*PI; fnr = 2*fnd;
79 function lu(m,k) = m[search([k],m)[0]][1]; 79 function lu(m,k) = m[search([k],m)[0]][1];
80 80
81 pulley_d = lu(pulley,"d"); 81 pulley_d = lu(pulley,"d");
82 pulley_h = lu(pulley,"h"); 82 pulley_h = lu(pulley,"h");
83 teeth_elevation = lu(pulley,"fe"); 83 teeth_elevation = lu(pulley,"fe");
84 filament_offset = lu(pulley,"g")+filament_d/2; 84 filament_offset = lu(pulley,"g")+filament_d/2;
85 pulley_d_clearance = lu(pulley,"ssrc")*2; 85 pulley_d_clearance = lu(pulley,"ssrc")*2;
86 86
87 idler_filament_offset = filament_path_d/2; 87 idler_filament_offset = filament_path_d/2;
88 lever_shell = mount_screwhead_h+0.5; 88 lever_shell = mount_screwhead_h+0.5;
89 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); 89 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
90 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie 90 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie
91 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; 91 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell;
92 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) 92 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
93 sqrt(c*c+pow(a-c,2)); 93 sqrt(c*c+pow(a-c,2));
94 longwing_travel = idler_travel*longwing/shortwing; 94 longwing_travel = idler_travel*longwing/shortwing;
95 h_ = (pulley_d+idler_d)/(2*sqrt(2)); 95 h_ = (pulley_d+idler_d)/(2*sqrt(2));
96 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); 96 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
97 spring_dl = idler_travel*longwing/ri; 97 spring_dl = idler_travel*longwing/ri;
98 // finger and spring support 98 // finger and spring support width
99 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); 99 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2);
100 100
101 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; 101 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1;
102 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; 102 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1;
103 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; 103 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
104 ls_z = filament_elevation; // leverspace mid-z 104 ls_z = filament_elevation; // leverspace mid-z
105 ls_h = lever_thickness+lever_v_clearance; // leverspace height 105 ls_h = lever_thickness+lever_v_clearance; // leverspace height
106 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell); 106 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell);
107 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); 107 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2);
108 echo("mount depth",mount_depth); 108 echo("mount depth",mount_depth);
109 109
110 pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell; 110 pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell;
111 111
112 module teardrop(r,d,h,center=false,angle=45) { 112 module teardrop(r,d,h,center=false,angle=45) {
113 dd = d ? d : (2*r); 113 dd = d ? d : (2*r);
114 $fn = dd*fnd; 114 $fn = dd*fnd;
115 cylinder(d=dd,h=h,center=center); 115 cylinder(d=dd,h=h,center=center);
116 if(angle>0) translate([0,0,center?-h/2:0]) 116 if(angle>0) translate([0,0,center?-h/2:0])
117 rotate([0,0,angle]) 117 rotate([0,0,angle])
118 cube(size=[d/2,d/2,h]); 118 cube(size=[d/2,d/2,h]);
119 } 119 }
120 120
121 module mirrorleft() { 121 module mirrorleft() {
122 mirror([left?0:1,0,0]) children(); 122 mirror([left?0:1,0,0]) children();