summaryrefslogtreecommitdiff
path: root/another.scad
Unidiff
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad9
1 files changed, 5 insertions, 4 deletions
diff --git a/another.scad b/another.scad
index 0d67286..8334b11 100644
--- a/another.scad
+++ b/another.scad
@@ -1,498 +1,499 @@
1draft=true; 1draft=true;
2layer_height=0.2; extrusion_width=0.4; 2layer_height=0.2; extrusion_width=0.4;
3epsilon=0.01; 3epsilon=0.01;
4$fs=0.0125; 4$fs=0.0125;
5 5
6use <pushfittery.scad>; 6use <pushfittery.scad>;
7include <pushfit_data.scad>; 7include <pushfit_data.scad>;
8include <pulley_data.scad>; 8include <pulley_data.scad>;
9 9
10module the_extruder( 10module the_extruder(
11 // motor properties 11 // motor properties
12 gearbox_d = 36, 12 gearbox_d = 36,
13 mount_d = 28, // the distance between opposite mounting holes 13 mount_d = 28, // the distance between opposite mounting holes
14 mounthole_depth = 5, 14 mounthole_depth = 5,
15 mounthole_min_depth = 3, mounthole_max_depth = 4, 15 mounthole_min_depth = 3, mounthole_max_depth = 4,
16 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox 16 protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox
17 bore_d = 8, bore_l = 17.6, 17 bore_d = 8, bore_l = 17.6,
18 bore_dd = 7, 18 bore_dd = 7,
19 // pulley properties 19 // pulley properties
20 pulley = pulley_e3d, 20 pulley = pulley_e3d,
21 pulley_elevation = 1, // pulley elevation above the protrusion 21 pulley_elevation = 1, // pulley elevation above the protrusion
22 // idler properties 22 // idler properties
23 idler_d = 10, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height 23 idler_d = 10, idler_h = 4, idler_id = 3,// idler dimensions: outer and inner diameters and height
24 // spring properties 24 // spring properties
25 spring_d = 10, spring_lc = 9.6, // spring diameter and compressed length 25 spring_d = 10, spring_lc = 9.6, // spring diameter and compressed length
26 // filament path properties 26 // filament path properties
27 filament_d = 1.75, 27 filament_d = 1.75,
28 filament_path_d = 2, 28 filament_path_d = 2,
29 filament_guide_d = 4, // PTFE filament guide diameter 29 filament_guide_d = 4, // PTFE filament guide diameter
30 // knob properties 30 // knob properties
31 knob_h = 10, 31 knob_h = 10,
32 knob_indent_d = 4, 32 knob_indent_d = 4,
33 knob_indents = 12, 33 knob_indents = 12,
34 knob_v_clearance = 1, 34 knob_v_clearance = 1,
35 // spring tensioner 35 // spring tensioner
36 st_nut_d = 9, st_nut_h = 4, 36 st_nut_d = 9, st_nut_h = 4,
37 st_screw_d = 5, 37 st_screw_d = 5,
38 st_thickshell = 8*extrusion_width, st_thinshell = 2*extrusion_width, 38 st_thickshell = 8*extrusion_width, st_thinshell = 2*extrusion_width,
39 st_split_w = 4*extrusion_width, 39 st_split_w = 4*extrusion_width,
40 40
41 // screw it 41 // screw it
42 mount_screw_d = 3.1, mount_screw_l = 20, 42 mount_screw_d = 3.1, mount_screw_l = 20,
43 mount_screwhead_d=6, mount_screwhead_h=3, 43 mount_screwhead_d=6, mount_screwhead_h=3,
44 idler_screw_d = 3, 44 idler_screw_d = 3,
45 idler_screwhead_d=6, idler_screwhead_h=3, 45 idler_screwhead_d=6, idler_screwhead_h=3,
46 46
47 pf = pushfit_metal, 47 pf = pushfit_metal,
48 pf_shell = max(3*layer_height,3*extrusion_width), 48 pf_shell = max(3*layer_height,3*extrusion_width),
49 49
50 // empty spaces 50 // empty spaces
51 idler_travel = 3, // how far should idler travel when pressed 51 idler_travel = 3, // how far should idler travel when pressed
52 idler_clearance=.5, 52 idler_clearance=.5,
53 pulley_small_d_clearance=.5, 53 pulley_small_d_clearance=.5,
54 lever_v_clearance=.7, // vertical clearance for the lever 54 lever_v_clearance=.7, // vertical clearance for the lever
55 spring_d_clearance=1, 55 spring_d_clearance=1,
56 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion 56 protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion
57 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion 57 protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion
58 mount_screw_d_tolerance=.4, 58 mount_screw_d_tolerance=.4,
59 idler_v_tolerance=.5, 59 idler_v_tolerance=.5,
60 knob_bore_d_tolerance=.8, 60 knob_bore_d_tolerance=.8,
61 st_nut_h_tolerance=.2, 61 st_nut_h_tolerance=.2,
62 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */ 62 st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
63 st_screw_d_tolerance=.5, 63 st_screw_d_tolerance=.5,
64 st_split_w_tolerance = .3, 64 st_split_w_tolerance = .3,
65 65
66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
67 min_xy_shell = 2*extrusion_width, 67 min_xy_shell = 2*extrusion_width,
68 68
69 body_label = "another", body_label_thickness = layer_height, 69 body_label = "another", body_label_thickness = layer_height,
70 knob_label = "another", knob_label_thickness = 2*layer_height, knob_label_size=undef, 70 knob_label = "another", knob_label_thickness = 2*layer_height, knob_label_size=undef,
71 71
72 what="lever", // lever|body|knob|springpad|* 72 what="lever", // lever|body|knob|springpad|*
73 left=false, 73 left=false,
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
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;
111
110 module teardrop(r,d,h,center=false,angle=45) { 112 module teardrop(r,d,h,center=false,angle=45) {
111 dd = d ? d : (2*r); 113 dd = d ? d : (2*r);
112 $fn = dd*fnd; 114 $fn = dd*fnd;
113 cylinder(d=dd,h=h,center=center); 115 cylinder(d=dd,h=h,center=center);
114 if(angle>0) translate([0,0,center?-h/2:0]) 116 if(angle>0) translate([0,0,center?-h/2:0])
115 rotate([0,0,angle]) 117 rotate([0,0,angle])
116 cube(size=[d/2,d/2,h]); 118 cube(size=[d/2,d/2,h]);
117 } 119 }
118 120
119 module mirrorleft() { 121 module mirrorleft() {
120 mirror([left?0:1,0,0]) children(); 122 mirror([left?0:1,0,0]) children();
121 } 123 }
122 module place_idler() { 124 module place_idler() {
123 rotate([0,0,45]) 125 rotate([0,0,45])
124 translate([(pulley_d+idler_d)/2,0,0]) 126 translate([(pulley_d+idler_d)/2,0,0])
125 children(); 127 children();
126 } 128 }
127 module finger_indent(d=lever_thickness,depth/*=1*/,r/*=15*/) { 129 module finger_indent(d=lever_thickness,depth/*=1*/,r/*=15*/) {
128 if(depth) { 130 if(depth) {
129 hh = (-4*pow(depth,2)+pow(d,2))/(8*depth); 131 hh = (-4*pow(depth,2)+pow(d,2))/(8*depth);
130 rr = depth+hh; 132 rr = depth+hh;
131 translate([0,0,hh]) sphere(r=rr,$fn=fnr*rr); 133 translate([0,0,hh]) sphere(r=rr,$fn=fnr*rr);
132 }else if(r) { 134 }else if(r) {
133 hh=sqrt(pow(r,2)-pow(d,2)/4); 135 hh=sqrt(pow(r,2)-pow(d,2)/4);
134 translate([0,0,hh]) sphere(r=r,$fn=fnr*r); 136 translate([0,0,hh]) sphere(r=r,$fn=fnr*r);
135 } 137 }
136 } 138 }
137 139
138 % if(vitamins) mirrorleft() { 140 % if(vitamins) mirrorleft() {
139 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60); 141 translate([0,0,-epsilon]) mirror([0,0,1]) cylinder(d=gearbox_d,h=1,$fn=60);
140 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) 142 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0])
141 cylinder(d=mount_screw_d,h=20,$fn=30); 143 cylinder(d=mount_screw_d,h=20,$fn=30);
142 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30); 144 translate([0,0,-epsilon]) cylinder(d=protrusion_d,h=protrusion_h,$fn=30);
143 translate([0,0,protrusion_h]) { 145 translate([0,0,protrusion_h]) {
144 difference() { 146 difference() {
145 cylinder(d=bore_d,h=bore_l,$fn=30); 147 cylinder(d=bore_d,h=bore_l,$fn=30);
146 translate([-bore_d/2-1,bore_dd-bore_d/2,-1]) 148 translate([-bore_d/2-1,bore_dd-bore_d/2,-1])
147 cube([bore_d+2,bore_d/2,bore_l+2]); 149 cube([bore_d+2,bore_d/2,bore_l+2]);
148 } 150 }
149 translate([0,0,pulley_elevation]) { 151 translate([0,0,pulley_elevation]) {
150 cylinder(d=pulley_d,h=pulley_h,$fn=30); 152 cylinder(d=pulley_d,h=pulley_h,$fn=30);
151 translate([0,0,teeth_elevation]) { 153 translate([0,0,teeth_elevation]) {
152 place_idler() { 154 place_idler() {
153 cylinder(d=idler_d,h=idler_h,center=true,$fn=30); 155 cylinder(d=idler_d,h=idler_h,center=true,$fn=30);
154 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30); 156 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30);
155 }//place idler 157 }//place idler
156 // filament path 158 // filament path
157 rotate([0,0,45]) { 159 rotate([0,0,45]) {
158 translate([pulley_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) { 160 translate([pulley_d/2-idler_filament_offset,0,0]) rotate([90,0,0]) {
159 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); 161 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
160 }//rotate translate 162 }//rotate translate
161 translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) { 163 translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) {
162 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); 164 cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
163 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d]) 165 translate([0,0,pf_offset])
164 pushfit(pf); 166 pushfit(pf);
165 }//rotate translate 167 }//rotate translate
166 }//rotate 168 }//rotate
167 }//translate teeth 169 }//translate teeth
168 }//translate pulley 170 }//translate pulley
169 }//translate protrusion 171 }//translate protrusion
170 }//vitamins 172 }//vitamins
171 173
172 module lever() { 174 module lever() {
173 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) { 175 translate([0,0,protrusion_h+pulley_elevation+teeth_elevation]) {
174 difference() { 176 difference() {
175 union() { 177 union() {
176 hull() { 178 hull() {
177 place_idler() 179 place_idler()
178 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 180 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
179 translate([mount_d/2,0,0]) 181 translate([mount_d/2,0,0])
180 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 182 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
181 }//hull 183 }//hull
182 hull() { 184 hull() {
183 translate([mount_d/2,0,0]) 185 translate([mount_d/2,0,0])
184 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); 186 cylinder(d=lsd,h=lever_thickness,center=true,$fn=60);
185 translate([mount_d/2,-longwing,0]) rotate([0,90,0]) 187 translate([mount_d/2,-longwing,0]) rotate([0,90,0])
186 cylinder(d=lever_thickness,h=lsd,center=true,$fn=60); 188 cylinder(d=lever_thickness,h=lsd,center=true,$fn=60);
187 }//hull 189 }//hull
188 }//union 190 }//union
189 191
190 // filament path 192 // filament path
191 place_idler() 193 place_idler()
192 translate([-idler_d/2-idler_filament_offset,0,0]) 194 translate([-idler_d/2-idler_filament_offset,0,0])
193 rotate([90,0,0]) { 195 rotate([90,0,0]) {
194 mirror([0,1,0]) 196 mirror([0,1,0])
195 teardrop(d=filament_path_d,h=3*gearbox_d,center=true); 197 teardrop(d=filament_path_d,h=3*gearbox_d,center=true);
196 translate([0,0, 198 translate([0,0,
197 sqrt(2)*(mount_d-pulley_d+lsd)/2 199 sqrt(2)*(mount_d-pulley_d+lsd)/2
198 ]) { 200 ]) {
199 cylinder(d1=filament_path_d,d2=2*filament_path_d, 201 cylinder(d1=filament_path_d,d2=2*filament_path_d,
200 h=filament_path_d,$fn=2*filament_path_d*fnd); 202 h=filament_path_d,$fn=2*filament_path_d*fnd);
201 translate([0,0,filament_path_d-epsilon]) 203 translate([0,0,filament_path_d-epsilon])
202 cylinder(d=2*filament_path_d,h=lsd*sqrt(2),$fn=2*filament_path_d*fnd); 204 cylinder(d=2*filament_path_d,h=lsd*sqrt(2),$fn=2*filament_path_d*fnd);
203 }//translate 205 }//translate
204 }//rotate translate place_idler 206 }//rotate translate place_idler
205 207
206 // idler space and mounting hole 208 // idler space and mounting hole
207 place_idler() { 209 place_idler() {
208 cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60); 210 cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60);
209 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30); 211 cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30);
210 translate([0,0,lever_thickness/2-idler_screwhead_h]) 212 translate([0,0,lever_thickness/2-idler_screwhead_h])
211 cylinder(d=idler_screwhead_d,h=idler_screwhead_h+1,$fn=fnd*idler_screwhead_d); 213 cylinder(d=idler_screwhead_d,h=idler_screwhead_h+1,$fn=fnd*idler_screwhead_d);
212 } 214 }
213 // mounting screw hole 215 // mounting screw hole
214 translate([mount_d/2,0,0]) 216 translate([mount_d/2,0,0])
215 cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=fnd*mount_screw_d); 217 cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=fnd*mount_screw_d);
216 218
217 // lever end 219 // lever end
218 translate([mount_d/2,0,0]) rotate([0,90,0]) { 220 translate([mount_d/2,0,0]) rotate([0,90,0]) {
219 translate([0,-longwing,lsd/2]) finger_indent(d=lever_thickness-1,r=15); 221 translate([0,-longwing,lsd/2]) finger_indent(d=lever_thickness-1,r=15);
220 translate([0,-longwing,0]) 222 translate([0,-longwing,0])
221 mirror([0,0,1]) 223 mirror([0,0,1])
222 difference() { 224 difference() {
223 cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=fnd*(spring_d+spring_d_clearance)); 225 cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=fnd*(spring_d+spring_d_clearance));
224 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 226 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
225 } 227 }
226 }//rotate-translate 228 }//rotate-translate
227 }//difference 229 }//difference
228 // bridging patch 230 // bridging patch
229 if(bridges) place_idler() 231 if(bridges) place_idler()
230 translate([0,0,lever_thickness/2-mount_screwhead_h]) 232 translate([0,0,lever_thickness/2-mount_screwhead_h])
231 mirror([0,0,1]) 233 mirror([0,0,1])
232 cylinder(d=mount_screwhead_d,h=layer_height); 234 cylinder(d=mount_screwhead_d,h=layer_height);
233 }//translate 235 }//translate
234 }//lever module 236 }//lever module
235 237
236 module body() { 238 module body() {
237 difference() { 239 difference() {
238 union() { 240 union() {
239 cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d); 241 cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d);
240 // spring tensioner part 242 // spring tensioner part
241 translate([-gearbox_d/2,0,0]) hull() { 243 translate([-gearbox_d/2,0,0]) hull() {
242 translate([0,-longwing,ls_z]) 244 translate([0,-longwing,ls_z])
243 rotate([0,90,0]) 245 rotate([0,90,0])
244 cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness); 246 cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness);
245 hh=body_h-ls_z; 247 hh=body_h-ls_z;
246 translate([0,0,ls_z]) 248 translate([0,0,ls_z])
247 mirror([0,1,0]) cube(size=[fsw,longwing+(st_split_w+st_split_w_tolerance)/2+st_thickshell,body_h-ls_z]); 249 mirror([0,1,0]) cube(size=[fsw,longwing+(st_split_w+st_split_w_tolerance)/2+st_thickshell,body_h-ls_z]);
248 hhh=ls_z; 250 hhh=ls_z;
249 translate([0,0,0]) 251 translate([0,0,0])
250 mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]); 252 mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]);
251 }//hull translate 253 }//hull translate
252 254
253 // pushfit bracket 255 // pushfit bracket
254 translate([0,0,filament_elevation]) 256 translate([0,0,filament_elevation])
255 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) 257 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
256 rotate([-90,0,0]) 258 rotate([-90,0,0])
257 translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) { 259 translate([0,0,pf_offset-gearbox_d/2/*TODO:*/]) {
258 pfbl = pf_h(pf)+gearbox_d/2; //TODO: 260 pfbl = pf_h(pf)+gearbox_d/2; //TODO:
259 pfbd = pf_d(pf)+2*pf_shell; 261 pfbd = pf_d(pf)+2*pf_shell;
260 hull() { 262 hull() {
261 cylinder(d=pfbd,h=pfbl,$fn=pfbd*fnd); 263 cylinder(d=pfbd,h=pfbl,$fn=pfbd*fnd);
262 translate([-epsilon/2,0,0]) { 264 translate([-epsilon/2,0,0]) {
263 cube(size=[epsilon,filament_elevation,pfbl-filament_elevation+pfbd/2]); 265 cube(size=[epsilon,filament_elevation,pfbl-filament_elevation+pfbd/2]);
264 mirror([0,1,0]) 266 mirror([0,1,0])
265 cube(size=[epsilon,body_h-filament_elevation,pfbl-body_h+filament_elevation+pfbd/2]); 267 cube(size=[epsilon,body_h-filament_elevation,pfbl-body_h+filament_elevation+pfbd/2]);
266 }//translate 268 }//translate
267 }//hull 269 }//hull
268 }//translate rotate translate rotate translate 270 }//translate rotate translate rotate translate
269 }//union (first child of difference) 271 }//union (first child of difference)
270 272
271 // protrusion 273 // protrusion
272 translate([0,0,-1]) 274 translate([0,0,-1])
273 cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h)); 275 cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h));
274 // mount screw holes 276 // mount screw holes
275 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) { 277 for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) {
276 translate([0,0,mount_screw_l-mount_depth-(bridges?layer_height:-epsilon)]) 278 translate([0,0,mount_screw_l-mount_depth-(bridges?layer_height:-epsilon)])
277 mirror([0,0,1]) 279 mirror([0,0,1])
278 cylinder(d=mount_screw_d+mount_screw_d_tolerance, 280 cylinder(d=mount_screw_d+mount_screw_d_tolerance,
279 h=mount_screw_l-mount_depth+1, 281 h=mount_screw_l-mount_depth+1,
280 $fn=fnd*(mount_screw_d+mount_screw_d_tolerance)); 282 $fn=fnd*(mount_screw_d+mount_screw_d_tolerance));
281 translate([0,0,mount_screw_l-mount_depth]) 283 translate([0,0,mount_screw_l-mount_depth])
282 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d); 284 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);
283 }//for 285 }//for
284 // pushfit 286 // pushfit
285 pf_offset = mount_d/sqrt(2)/2+mount_screw_d;
286 translate([0,0,filament_elevation]) 287 translate([0,0,filament_elevation])
287 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) 288 rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
288 rotate([-90,0,0]) 289 rotate([-90,0,0])
289 translate([0,0,pf_offset]) 290 translate([0,0,pf_offset])
290 rotate([0,0,180]) { 291 rotate([0,0,180]) {
291 pushfit(pf); 292 pushfit(pf);
292 mirror([0,0,1]) { 293 mirror([0,0,1]) {
293 fh = 1.5* (filament_guide_d-filament_path_d)/2; 294 fh = 1.5* (filament_guide_d-filament_path_d)/2;
294 fo = pf_offset -filament_path_d /*(idler_d+idler_clearance)/2*/-fh; 295 fo = pf_offset -filament_path_d /*(idler_d+idler_clearance)/2*/-fh;
295 translate([0,0,-1]) teardrop(d=filament_guide_d,h=fo/2,angle=225); 296 translate([0,0,-1]) teardrop(d=filament_guide_d,h=fo/2,angle=225);
296 translate([0,0,-1]) teardrop(d=filament_path_d,h=gearbox_d/2+1,angle=-225); 297 translate([0,0,-1]) teardrop(d=filament_path_d,h=gearbox_d/2+1,angle=-225);
297 translate([0,0,fo+epsilon]) 298 translate([0,0,fo+epsilon])
298 cylinder(d1=filament_path_d,d2=filament_guide_d,h=fh,$fn=fnd*filament_guide_d); 299 cylinder(d1=filament_path_d,d2=filament_guide_d,h=fh,$fn=fnd*filament_guide_d);
299 }//mirror 300 }//mirror
300 }//rotate translate rotate translate rotate translate 301 }//rotate translate rotate translate rotate translate
301 // pulley 302 // pulley
302 cylinder(d=pulley_d+pulley_small_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); 303 cylinder(d=pulley_d+pulley_small_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance));
303 cylinder(d=pulley_d+pulley_d_clearance,ls_z-max(idler_h,filament_guide_d)/2,$fn=fnd*(pulley_d+pulley_d_clearance)); 304 cylinder(d=pulley_d+pulley_d_clearance,ls_z-max(idler_h,filament_guide_d)/2,$fn=fnd*(pulley_d+pulley_d_clearance));
304 305
305 translate([0,0,ls_z-ls_h/2]) { 306 translate([0,0,ls_z-ls_h/2]) {
306 // idler travel 307 // idler travel
307 translate([mount_d/2,0,0]) 308 translate([mount_d/2,0,0])
308 rotate([0,0,45]) 309 rotate([0,0,45])
309 rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2)) 310 rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2))
310 square([shortwing+(idler_d+idler_clearance)/2,ls_h]); 311 square([shortwing+(idler_d+idler_clearance)/2,ls_h]);
311 // idler itself 312 // idler itself
312 place_idler() 313 place_idler()
313 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance)); 314 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance));
314 // lever space 315 // lever space
315 rotate([0,0,45]) 316 rotate([0,0,45])
316 rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1))) 317 rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1)))
317 square([gearbox_d/2+1,ls_h]); 318 square([gearbox_d/2+1,ls_h]);
318 } 319 }
319 320
320 // back side cutout 321 // back side cutout
321 // XXX: this is somewhat ugly and potentially bugged, 322 // XXX: this is somewhat ugly and potentially bugged,
322 // but I want to sleep. 323 // but I want to sleep.
323 a0_ = atan( 324 a0_ = atan(
324 (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2) 325 (pf_offset+pf_h(pf)+gearbox_d/2)
325 / 326 /
326 ( 327 (
327 pulley_d/2+filament_offset- 328 pulley_d/2+filament_offset-
328 (pf_d(pf)+2*pf_shell)/2/cos(30) 329 (pf_d(pf)+2*pf_shell)/2/cos(30)
329 ) 330 )
330 ); 331 );
331 a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ ); 332 a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ );
332 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); 333 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2));
333 translate([0,0,ls_z]) difference() { 334 translate([0,0,ls_z]) difference() {
334 rotate([0,0,-180+a0]) 335 rotate([0,0,-180+a0])
335 rotate_extrude(angle=a1-a0) 336 rotate_extrude(angle=a1-a0)
336 translate([0,-ls_h/2]) 337 translate([0,-ls_h/2])
337 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, 338 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1,
338 ls_h]); 339 ls_h]);
339 translate([-mount_d/2,0,0]) 340 translate([-mount_d/2,0,0])
340 cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); 341 cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d));
341 }//difference translate 342 }//difference translate
342 343
343 // spring tensioner 344 // spring tensioner
344 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) { 345 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) {
345 mirror([0,0,1]) { 346 mirror([0,0,1]) {
346 translate([0,0,st_thickshell]) 347 translate([0,0,st_thickshell])
347 hull() for(o=[0,spring_d]) translate([0,-o,0]) 348 hull() for(o=[0,spring_d]) translate([0,-o,0])
348 rotate([0,0,30]) 349 rotate([0,0,30])
349 cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); 350 cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6);
350 translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); 351 translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
351 bigd = spring_d+spring_d_clearance; 352 bigd = spring_d+spring_d_clearance;
352 hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; 353 hf = (bigd-st_screw_d-st_screw_d_tolerance)/2;
353 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) { 354 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) {
354 cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, 355 cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd,
355 h=hf+epsilon, $fn=fnd*bigd); 356 h=hf+epsilon, $fn=fnd*bigd);
356 translate([0,-(st_split_w+st_split_w_tolerance)/2,0]) 357 translate([0,-(st_split_w+st_split_w_tolerance)/2,0])
357 cube(size=[body_h-ls_z+1,st_split_w+st_split_w_tolerance,fsw+1]); 358 cube(size=[body_h-ls_z+1,st_split_w+st_split_w_tolerance,fsw+1]);
358 }//translate 359 }//translate
359 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) 360 translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
360 cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); 361 cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
361 }//mirror 362 }//mirror
362 }//translate 363 }//translate
363 364
364 // label 365 // label
365 body_label(); 366 body_label();
366 367
367 }//difference 368 }//difference
368 369
369 }//body module 370 }//body module
370 module body_label() { 371 module body_label() {
371 if(body_label) { 372 if(body_label) {
372 label=body_label; 373 label=body_label;
373 label_thickness=body_label_thickness; 374 label_thickness=body_label_thickness;
374 label_len = len(label); 375 label_len = len(label);
375 labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell]; 376 labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell];
376 translate([0,0,body_h-label_thickness]) 377 translate([0,0,body_h-label_thickness])
377 linear_extrude(height=label_thickness+epsilon,convexity=64) 378 linear_extrude(height=label_thickness+epsilon,convexity=64)
378 translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2]) 379 translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2])
379 mirror([left?0:1,0]) 380 mirror([left?0:1,0])
380 text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); 381 text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black");
381 }else sphere(d=epsilon); // to avoid makefile breakage 382 }else sphere(d=epsilon); // to avoid makefile breakage
382 } 383 }
383 384
384 module springpad() { 385 module springpad() {
385 smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell; 386 smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell;
386 bigd = spring_d+spring_d_clearance/2; 387 bigd = spring_d+spring_d_clearance/2;
387 hf = (bigd-smalld)/2; 388 hf = (bigd-smalld)/2;
388 h = hf*3.5; 389 h = hf*3.5;
389 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) 390 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation])
390 rotate([0,90,0]) difference() { 391 rotate([0,90,0]) difference() {
391 union() { 392 union() {
392 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); 393 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
393 translate([0,0,hf-epsilon]) 394 translate([0,0,hf-epsilon])
394 cylinder(d=bigd,h=h-hf,$fn=fnd*bigd); 395 cylinder(d=bigd,h=h-hf,$fn=fnd*bigd);
395 translate([0,0,h]) 396 translate([0,0,h])
396 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 397 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
397 l = body_h-ls_z; 398 l = body_h-ls_z;
398 w = st_split_w; 399 w = st_split_w;
399 hull() translate([0,-st_split_w/2,0]) mirror([1,0,0]) { 400 hull() translate([0,-st_split_w/2,0]) mirror([1,0,0]) {
400 translate([0,0,w]) 401 translate([0,0,w])
401 cube(size=[l,st_split_w,w]); 402 cube(size=[l,st_split_w,w]);
402 cube(size=[l-w,st_split_w,2*w]); 403 cube(size=[l-w,st_split_w,2*w]);
403 } 404 }
404 } 405 }
405 translate([0,0,-epsilon]) 406 translate([0,0,-epsilon])
406 cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); 407 cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
407 } 408 }
408 } 409 }
409 410
410 module knob() { 411 module knob() {
411 ch = knob_indent_d/2; 412 ch = knob_indent_d/2;
412 knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance; 413 knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance;
413 translate([0,0,body_h+epsilon]) { 414 translate([0,0,body_h+epsilon]) {
414 mirror([0,0,1]) translate([0,0,-epsilon]) { 415 mirror([0,0,1]) translate([0,0,-epsilon]) {
415 difference() { 416 difference() {
416 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); 417 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
417 translate([0,0,-1]) difference() { 418 translate([0,0,-1]) difference() {
418 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); 419 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
419 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) 420 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
420 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 421 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
421 } 422 }
422 } 423 }
423 } 424 }
424 difference() { 425 difference() {
425 hull() { 426 hull() {
426 cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d); 427 cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d);
427 translate([0,0,ch]) 428 translate([0,0,ch])
428 cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d); 429 cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d);
429 } 430 }
430 for(a=[0:360/knob_indents:359]) rotate([0,0,a]) 431 for(a=[0:360/knob_indents:359]) rotate([0,0,a])
431 translate([0,gearbox_d/2,-1]) 432 translate([0,gearbox_d/2,-1])
432 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); 433 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
433 translate([0,0,-body_h-epsilon]) knob_label(); 434 translate([0,0,-body_h-epsilon]) knob_label();
434 } 435 }
435 } 436 }
436 }//knob module 437 }//knob module
437 module knob_label() { 438 module knob_label() {
438 if(knob_label) { 439 if(knob_label) {
439 ll = len(knob_label); 440 ll = len(knob_label);
440 lsl = gearbox_d-knob_indent_d; 441 lsl = gearbox_d-knob_indent_d;
441 ts = knob_label_size?knob_label_size:min(lsl/ll,gearbox_d/4); 442 ts = knob_label_size?knob_label_size:min(lsl/ll,gearbox_d/4);
442 translate([0,0,body_h+epsilon+knob_h-knob_label_thickness]) 443 translate([0,0,body_h+epsilon+knob_h-knob_label_thickness])
443 linear_extrude(height=knob_label_thickness+epsilon,convexity=64) 444 linear_extrude(height=knob_label_thickness+epsilon,convexity=64)
444 mirror([left?0:1,0]) 445 mirror([left?0:1,0])
445 text(text=knob_label,size=ts,halign="center",valign="center",font="Arial Black"); 446 text(text=knob_label,size=ts,halign="center",valign="center",font="Arial Black");
446 }else sphere(d=epsilon); // to avoid makefile breakage 447 }else sphere(d=epsilon); // to avoid makefile breakage
447 } 448 }
448 449
449 module debug() { 450 module debug() {
450 difference() { 451 difference() {
451 children(); 452 children();
452 if(debug) { 453 if(debug) {
453 // spring tensioner debug cutout 454 // spring tensioner debug cutout
454 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) 455 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0])
455 translate([0,-lever_thickness/2-1,-gearbox_d]) 456 translate([0,-lever_thickness/2-1,-gearbox_d])
456 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); 457 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
457 // lever axis debug cutout 458 // lever axis debug cutout
458 translate([mount_d/2,0,-1]) 459 translate([mount_d/2,0,-1])
459 rotate([0,0,-45]) 460 rotate([0,0,-45])
460 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); 461 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
461 // idler debug cutout 462 // idler debug cutout
462 translate([0,0,ls_z]) 463 translate([0,0,ls_z])
463 place_idler() 464 place_idler()
464 rotate([0,0,-45]) 465 rotate([0,0,-45])
465 translate([0,0,-lever_thickness/2-epsilon]) 466 translate([0,0,-lever_thickness/2-epsilon])
466 cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1, 467 cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1,
467 lever_thickness+2*epsilon]); 468 lever_thickness+2*epsilon]);
468 // pushfit debug cutout 469 // pushfit debug cutout
469 place_idler() 470 place_idler()
470 translate([-idler_d/2+filament_offset,0,ls_z]) 471 translate([-idler_d/2+filament_offset,0,ls_z])
471 cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]); 472 cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]);
472 }//if debug 473 }//if debug
473 }//difference 474 }//difference
474 } 475 }
475 476
476 mirrorleft() 477 mirrorleft()
477 debug() 478 debug()
478 if(what=="lever") color("green",0.7) lever(); 479 if(what=="lever") color("green",0.7) lever();
479 else if(what=="body") color("yellow",0.7) body(); 480 else if(what=="body") color("yellow",0.7) body();
480 else if(what=="body.label") color("brown",0.7) body_label(); 481 else if(what=="body.label") color("brown",0.7) body_label();
481 else if(what=="knob") color("red",0.7) knob(); 482 else if(what=="knob") color("red",0.7) knob();
482 else if(what=="knob.label") color("brown",0.7) knob_label(); 483 else if(what=="knob.label") color("brown",0.7) knob_label();
483 else if(what=="springpad") color("blue",0.7) springpad(); 484 else if(what=="springpad") color("blue",0.7) springpad();
484 else if(what=="both") { 485 else if(what=="both") {
485 color("green",0.7) lever(); 486 color("green",0.7) lever();
486 color("yellow",0.7) body(); 487 color("yellow",0.7) body();
487 color("brown",0.7) body_label(); 488 color("brown",0.7) body_label();
488 }else{ 489 }else{
489 color("green",0.7) lever(); 490 color("green",0.7) lever();
490 color("yellow",0.7) body(); 491 color("yellow",0.7) body();
491 color("brown",0.7) body_label(); 492 color("brown",0.7) body_label();
492 color("red",0.7) knob(); 493 color("red",0.7) knob();
493 color("brown",0.7) knob_label(); 494 color("brown",0.7) knob_label();
494 color("blue",0.7) springpad(); 495 color("blue",0.7) springpad();
495 } 496 }
496} 497}
497 498
498the_extruder(what="*",left=false,debug=true); 499the_extruder(what="*",left=false,debug=true);