summaryrefslogtreecommitdiff
path: root/another.scad
Unidiff
Diffstat (limited to 'another.scad') (more/less context) (show whitespace changes)
-rw-r--r--another.scad3
1 files changed, 2 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index 51358ee..eea918b 100644
--- a/another.scad
+++ b/another.scad
@@ -61,49 +61,50 @@ module the_extruder(
61 knob_bore_d_tolerance=.6, 61 knob_bore_d_tolerance=.6,
62 st_nut_h_tolerance=.2, 62 st_nut_h_tolerance=.2,
63 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */ 63 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
64 st_screw_d_tolerance=.5, 64 st_screw_d_tolerance=.5,
65 st_split_w_tolerance = .3, 65 st_split_w_tolerance = .3,
66 66
67 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 67 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
68 min_xy_shell = 2*extrusion_width, 68 min_xy_shell = 2*extrusion_width,
69 69
70 what="lever", // lever|body|knob|springpad|* 70 what="lever", // lever|body|knob|springpad|*
71 left=false, 71 left=false,
72 vitamins = true, 72 vitamins = true,
73 bridges = true, 73 bridges = true,
74 debug = false, 74 debug = false,
75 label = "another" 75 label = "another"
76) { 76) {
77 fnd = 2*PI; fnr = 2*fnd; 77 fnd = 2*PI; fnr = 2*fnd;
78 function lu(m,k) = m[search([k],m)[0]][1]; 78 function lu(m,k) = m[search([k],m)[0]][1];
79 79
80 pulley_d = lu(pulley,"d"); 80 pulley_d = lu(pulley,"d");
81 pulley_h = lu(pulley,"h"); 81 pulley_h = lu(pulley,"h");
82 teeth_elevation = lu(pulley,"fe"); 82 teeth_elevation = lu(pulley,"fe");
83 filament_offset = lu(pulley,"g")+filament_d/2; 83 filament_offset = lu(pulley,"g")+filament_d/2;
84 pulley_d_clearance = lu(pulley,"ssrc")*2; 84 pulley_d_clearance = lu(pulley,"ssrc")*2;
85 idler_filament_offset = filament_path_d/2; // -filament_offset; 85
86 idler_filament_offset = filament_path_d/2;
86 lever_shell = mount_screwhead_h+0.5; 87 lever_shell = mount_screwhead_h+0.5;
87 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell); 88 lever_thickness=max(spring_d+spring_d_clearance+layer_height*8,idler_h+idler_v_tolerance+2*lever_shell);
88 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie 89 lsd = idler_d-idler_clearance*2; // the diameter of lever thingie
89 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell; 90 longwing=(mount_d+mount_screw_d+mount_screw_d_tolerance+spring_d+spring_d_clearance)/2+min_xy_shell;
90 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2)) 91 shortwing = let(a=mount_d/2,c=(pulley_d+idler_d)/2/sqrt(2))
91 sqrt(c*c+pow(a-c,2)); 92 sqrt(c*c+pow(a-c,2));
92 longwing_travel = idler_travel*longwing/shortwing; 93 longwing_travel = idler_travel*longwing/shortwing;
93 h_ = (pulley_d+idler_d)/(2*sqrt(2)); 94 h_ = (pulley_d+idler_d)/(2*sqrt(2));
94 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) ); 95 ri = sqrt( pow(h_,2) + pow(mount_d/2-h_,2) );
95 spring_dl = idler_travel*longwing/ri; 96 spring_dl = idler_travel*longwing/ri;
96 // finger and spring support 97 // finger and spring support
97 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2); 98 fsw = gearbox_d-(gearbox_d-mount_d)/2-max(spring_lc,longwing_travel+(gearbox_d-mount_d)/2);
98 99
99 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1; 100 mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1;
100 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1; 101 mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1;
101 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation; 102 filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
102 ls_z = filament_elevation; // leverspace mid-z 103 ls_z = filament_elevation; // leverspace mid-z
103 ls_h = lever_thickness+lever_v_clearance; // leverspace height 104 ls_h = lever_thickness+lever_v_clearance; // leverspace height
104 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell); 105 mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell);
105 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); 106 body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2);
106 echo("mount depth",mount_depth); 107 echo("mount depth",mount_depth);
107 108
108 module teardrop(r,d,h,center=false,angle=45) { 109 module teardrop(r,d,h,center=false,angle=45) {
109 dd = d ? d : (2*r); 110 dd = d ? d : (2*r);