summaryrefslogtreecommitdiff
Unidiff
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 dbd20f3..7a3b0ac 100644
--- a/another.scad
+++ b/another.scad
@@ -280,146 +280,146 @@ module the_extruder(
280 cylinder(r=r,h=ls_h,center=true); 280 cylinder(r=r,h=ls_h,center=true);
281 translate([-r-1,0,-ls_h/2-1]) cube(size=[2*r+2,r+1,ls_h+2]); 281 translate([-r-1,0,-ls_h/2-1]) cube(size=[2*r+2,r+1,ls_h+2]);
282 } 282 }
283 283
284 // back side cutout 284 // back side cutout
285 a0 = asin((mount_screwhead_d+2*extrusion_width)/mount_d); 285 a0 = asin((mount_screwhead_d+2*extrusion_width)/mount_d);
286 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); 286 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2));
287 translate([0,0,ls_z]) hull() { 287 translate([0,0,ls_z]) hull() {
288 rotate([0,0,-180+a0]) 288 rotate([0,0,-180+a0])
289 rotate_extrude(angle=a1-a0) 289 rotate_extrude(angle=a1-a0)
290 translate([0,-ls_h/2]) 290 translate([0,-ls_h/2])
291 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, 291 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1,
292 ls_h]); 292 ls_h]);
293 cylinder(d=bore_d/2/*TODO:recalculate angles based on this, 293 cylinder(d=bore_d/2/*TODO:recalculate angles based on this,
294 too lazy to do that now*/, 294 too lazy to do that now*/,
295 h=ls_h,center=true); 295 h=ls_h,center=true);
296 } 296 }
297 297
298 rotate([0,0,-45]) 298 rotate([0,0,-45])
299 translate([0,0,ls_z-ls_h/2]) 299 translate([0,0,ls_z-ls_h/2])
300 cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]); 300 cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]);
301 translate([0,0,ls_z-ls_h/2]) { 301 translate([0,0,ls_z-ls_h/2]) {
302 translate([mount_screwhead_d/2,0,0]) 302 translate([mount_screwhead_d/2,0,0])
303 mirror([0,1,0]) 303 mirror([0,1,0])
304 cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); 304 cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]);
305 } 305 }
306 //translate([-mount_d/2,-longwing,filament_elevation]) 306 //translate([-mount_d/2,-longwing,filament_elevation])
307 if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */ 307 if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */
308 translate([mount_d/2,-longwing,filament_elevation]) 308 translate([mount_d/2,-longwing,filament_elevation])
309 rotate([0,-90,0]) difference() { 309 rotate([0,-90,0]) difference() {
310 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); 310 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance));
311 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 311 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
312 } 312 }
313 313
314 }//difference 314 }//difference
315 315
316 if(supports) intersection() { 316 if(supports) intersection() {
317 difference() { 317 difference() {
318 translate([0,0,ls_z-ls_h/2-epsilon]) 318 translate([0,0,ls_z-ls_h/2-epsilon])
319 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); 319 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d);
320 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance)); 320 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance));
321 } 321 }
322 // supports 322 // supports
323 // TODO: hardcoded stuff below… 323 // TODO: hardcoded stuff below…
324 if(false) { // parallel 324 if(false) { // parallel
325 for(y=[-gearbox_d:4:gearbox_d]) 325 for(y=[-gearbox_d:4:gearbox_d])
326 translate([0,y-extrusion_width/2,0]) 326 translate([0,y-extrusion_width/2,0])
327 cube(size=[gearbox_d,extrusion_width,body_h]); 327 cube(size=[gearbox_d,extrusion_width,body_h]);
328 }else{ // radial 328 }else{ // radial
329 for(zr=[-65:(65+50)/7:50]) 329 for(zr=[-65:(65+50)/7:50])
330 rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) 330 rotate([0,0,zr]) translate([0,-extrusion_width/2,0])
331 cube(size=[gearbox_d,extrusion_width,body_h]); 331 cube(size=[gearbox_d,extrusion_width,body_h]);
332 } 332 }
333 } 333 }
334 334
335 }//body module 335 }//body module
336 336
337 module springpad() { 337 module springpad() {
338 smalld=st_screw_d+2*extrusion_width; 338 smalld=st_screw_d+2*extrusion_width;
339 bigd = spring_d+spring_d_clearance/2; 339 bigd = spring_d+spring_d_clearance/2;
340 hf = (bigd-smalld)/2; 340 hf = (bigd-smalld)/2;
341 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) 341 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation])
342 rotate([0,90,0]) difference() { 342 rotate([0,90,0]) difference() {
343 union() { 343 union() {
344 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); 344 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
345 translate([0,0,hf-epsilon]) 345 translate([0,0,hf-epsilon])
346 cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); 346 cylinder(d=bigd,h=hf*2,$fn=fnd*bigd);
347 translate([0,0,3*hf]) 347 translate([0,0,3*hf])
348 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 348 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
349 } 349 }
350 translate([0,0,-epsilon]) 350 translate([0,0,-epsilon])
351 cylinder(d=st_screw_d,h=2*hf+epsilon,$fn=fnd*st_screw_d); 351 cylinder(d=st_screw_d,h=2*hf+epsilon,$fn=fnd*st_screw_d);
352 } 352 }
353 } 353 }
354 354
355 module knob() { 355 module knob() {
356 ch = knob_indent_d/2; 356 ch = knob_indent_d/2;
357 translate([0,0,body_h+epsilon]) { 357 translate([0,0,body_h+epsilon]) {
358 mirror([0,0,1]) translate([0,0,-epsilon]) { 358 mirror([0,0,1]) translate([0,0,-epsilon]) {
359 difference() { 359 difference() {
360 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); 360 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
361 translate([0,0,-1]) difference() { 361 translate([0,0,-1]) difference() {
362 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); 362 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
363 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) 363 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
364 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 364 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
365 } 365 }
366 } 366 }
367 } 367 }
368 difference() { 368 difference() {
369 union() { 369 union() {
370 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); 370 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d);
371 translate([0,0,ch]) 371 translate([0,0,ch])
372 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); 372 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d);
373 translate([0,0,knob_h-ch]) 373 translate([0,0,knob_h-ch])
374 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); 374 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d);
375 } 375 }
376 for(a=[0:360/knob_indents:359]) rotate([0,0,a]) 376 for(a=[0:360/knob_indents:359]) rotate([0,0,a])
377 translate([0,gearbox_d/2,-1]) 377 translate([0,gearbox_d/2,-1])
378 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); 378 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
379 } 379 }
380 } 380 }
381 }//knob module 381 }//knob module
382 382
383 module debug() { 383 module debug() {
384 difference() { 384 difference() {
385 children(); 385 children();
386 if(debug) { 386 if(debug) {
387 // spring tensioner debug cutout 387 // spring tensioner debug cutout
388 if(tensioner) // TODO: collaps copypasted transformations 388 if(tensioner) // TODO: collaps copypasted transformations
389 translate([-gearbox_d/2,0,0]) 389 translate([-gearbox_d/2,0,0])
390 translate([0,-longwing,ls_z]) rotate([0,-90,0]) 390 translate([0,-longwing,ls_z]) rotate([0,-90,0])
391 translate([0,-lever_thickness/2-1,-gearbox_d]) 391 translate([0,-lever_thickness/2-1,-gearbox_d])
392 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); 392 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
393 // lever axis debug cutout 393 // lever axis debug cutout
394 translate([mount_d/2,0,-1]) 394 translate([mount_d/2,0,-1])
395 rotate([0,0,-45]) 395 rotate([0,0,-45])
396 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); 396 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
397 // idler debug cutout 397 // idler debug cutout
398 translate([0,0,ls_z]) 398 translate([0,0,ls_z])
399 place_idler() 399 place_idler()
400 rotate([0,0,-45]) 400 rotate([0,0,-45])
401 translate([0,0,-lever_thickness/2-epsilon]) 401 translate([0,0,-lever_thickness/2-epsilon])
402 cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, 402 cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2,
403 lever_thickness+2*epsilon]); 403 lever_thickness+2*epsilon]);
404 }//if debug 404 }//if debug
405 }//difference 405 }//difference
406 } 406 }
407 407
408 debug()
409 mirrorleft() 408 mirrorleft()
409 debug()
410 if(what=="lever") color("green",0.7) lever(); 410 if(what=="lever") color("green",0.7) lever();
411 else if(what=="body") color("yellow",0.7) body(); 411 else if(what=="body") color("yellow",0.7) body();
412 else if(what=="knob") color("red",0.7) knob(); 412 else if(what=="knob") color("red",0.7) knob();
413 else if(what=="springpad") color("blue",0.7) springpad(); 413 else if(what=="springpad") color("blue",0.7) springpad();
414 else if(what=="both") { 414 else if(what=="both") {
415 color("green",0.7) lever(); 415 color("green",0.7) lever();
416 color("yellow",0.7) body(); 416 color("yellow",0.7) body();
417 }else{ 417 }else{
418 color("green",0.7) lever(); 418 color("green",0.7) lever();
419 color("yellow",0.7) body(); 419 color("yellow",0.7) body();
420 color("red",0.7) knob(); 420 color("red",0.7) knob();
421 color("blue",0.7) springpad(); 421 color("blue",0.7) springpad();
422 } 422 }
423} 423}
424 424
425the_extruder(what="both",left=false); 425the_extruder(what="both",left=false);