summaryrefslogtreecommitdiff
path: root/another.scad
authorMichael Krelin <hacker@klever.net>2018-08-10 09:42:53 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-10 09:42:53 (UTC)
commit1a3981f4d4c89ec470a9ccef4564d166e4603ba3 (patch) (unidiff)
treefe614d4b95a3701617fa55c401e5c09b361b7c6b /another.scad
parent0f096a81ab50e7dd4a9e949f7b4c49e701d3652c (diff)
downloadextrudery-1a3981f4d4c89ec470a9ccef4564d166e4603ba3.zip
extrudery-1a3981f4d4c89ec470a9ccef4564d166e4603ba3.tar.gz
extrudery-1a3981f4d4c89ec470a9ccef4564d166e4603ba3.tar.bz2
another: do everything and turn on debug for dev setup
Diffstat (limited to 'another.scad') (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 da5f695..7e8a45f 100644
--- a/another.scad
+++ b/another.scad
@@ -330,97 +330,97 @@ module the_extruder(
330 for(zr=[-65:(65+50)/7:50]) 330 for(zr=[-65:(65+50)/7:50])
331 rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) 331 rotate([0,0,zr]) translate([0,-extrusion_width/2,0])
332 cube(size=[gearbox_d,extrusion_width,body_h]); 332 cube(size=[gearbox_d,extrusion_width,body_h]);
333 } 333 }
334 } 334 }
335 335
336 }//body module 336 }//body module
337 337
338 module springpad() { 338 module springpad() {
339 smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; 339 smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width;
340 bigd = spring_d+spring_d_clearance/2; 340 bigd = spring_d+spring_d_clearance/2;
341 hf = (bigd-smalld)/2; 341 hf = (bigd-smalld)/2;
342 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) 342 translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation])
343 rotate([0,90,0]) difference() { 343 rotate([0,90,0]) difference() {
344 union() { 344 union() {
345 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); 345 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
346 translate([0,0,hf-epsilon]) 346 translate([0,0,hf-epsilon])
347 cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); 347 cylinder(d=bigd,h=hf*2,$fn=fnd*bigd);
348 translate([0,0,3*hf]) 348 translate([0,0,3*hf])
349 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); 349 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
350 } 350 }
351 translate([0,0,-epsilon]) 351 translate([0,0,-epsilon])
352 cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); 352 cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
353 } 353 }
354 } 354 }
355 355
356 module knob() { 356 module knob() {
357 ch = knob_indent_d/2; 357 ch = knob_indent_d/2;
358 translate([0,0,body_h+epsilon]) { 358 translate([0,0,body_h+epsilon]) {
359 mirror([0,0,1]) translate([0,0,-epsilon]) { 359 mirror([0,0,1]) translate([0,0,-epsilon]) {
360 difference() { 360 difference() {
361 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); 361 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
362 translate([0,0,-1]) difference() { 362 translate([0,0,-1]) difference() {
363 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); 363 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
364 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) 364 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
365 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 365 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
366 } 366 }
367 } 367 }
368 } 368 }
369 difference() { 369 difference() {
370 union() { 370 union() {
371 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); 371 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d);
372 translate([0,0,ch]) 372 translate([0,0,ch])
373 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); 373 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d);
374 translate([0,0,knob_h-ch]) 374 translate([0,0,knob_h-ch])
375 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); 375 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d);
376 } 376 }
377 for(a=[0:360/knob_indents:359]) rotate([0,0,a]) 377 for(a=[0:360/knob_indents:359]) rotate([0,0,a])
378 translate([0,gearbox_d/2,-1]) 378 translate([0,gearbox_d/2,-1])
379 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); 379 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
380 } 380 }
381 } 381 }
382 }//knob module 382 }//knob module
383 383
384 module debug() { 384 module debug() {
385 difference() { 385 difference() {
386 children(); 386 children();
387 if(debug) { 387 if(debug) {
388 // spring tensioner debug cutout 388 // spring tensioner debug cutout
389 if(tensioner) // TODO: collaps copypasted transformations 389 if(tensioner) // TODO: collaps copypasted transformations
390 translate([-gearbox_d/2,0,0]) 390 translate([-gearbox_d/2,0,0])
391 translate([0,-longwing,ls_z]) rotate([0,-90,0]) 391 translate([0,-longwing,ls_z]) rotate([0,-90,0])
392 translate([0,-lever_thickness/2-1,-gearbox_d]) 392 translate([0,-lever_thickness/2-1,-gearbox_d])
393 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); 393 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
394 // lever axis debug cutout 394 // lever axis debug cutout
395 translate([mount_d/2,0,-1]) 395 translate([mount_d/2,0,-1])
396 rotate([0,0,-45]) 396 rotate([0,0,-45])
397 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); 397 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
398 // idler debug cutout 398 // idler debug cutout
399 translate([0,0,ls_z]) 399 translate([0,0,ls_z])
400 place_idler() 400 place_idler()
401 rotate([0,0,-45]) 401 rotate([0,0,-45])
402 translate([0,0,-lever_thickness/2-epsilon]) 402 translate([0,0,-lever_thickness/2-epsilon])
403 cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, 403 cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2,
404 lever_thickness+2*epsilon]); 404 lever_thickness+2*epsilon]);
405 }//if debug 405 }//if debug
406 }//difference 406 }//difference
407 } 407 }
408 408
409 mirrorleft() 409 mirrorleft()
410 debug() 410 debug()
411 if(what=="lever") color("green",0.7) lever(); 411 if(what=="lever") color("green",0.7) lever();
412 else if(what=="body") color("yellow",0.7) body(); 412 else if(what=="body") color("yellow",0.7) body();
413 else if(what=="knob") color("red",0.7) knob(); 413 else if(what=="knob") color("red",0.7) knob();
414 else if(what=="springpad") color("blue",0.7) springpad(); 414 else if(what=="springpad") color("blue",0.7) springpad();
415 else if(what=="both") { 415 else if(what=="both") {
416 color("green",0.7) lever(); 416 color("green",0.7) lever();
417 color("yellow",0.7) body(); 417 color("yellow",0.7) body();
418 }else{ 418 }else{
419 color("green",0.7) lever(); 419 color("green",0.7) lever();
420 color("yellow",0.7) body(); 420 color("yellow",0.7) body();
421 color("red",0.7) knob(); 421 color("red",0.7) knob();
422 color("blue",0.7) springpad(); 422 color("blue",0.7) springpad();
423 } 423 }
424} 424}
425 425
426the_extruder(what="both",left=false); 426the_extruder(what="*",left=false,debug=true);