author | Michael Krelin <hacker@klever.net> | 2018-08-06 11:50:50 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-06 11:50:50 (UTC) |
commit | 1d8f93c354df4effca90d355841d189ecdec7a27 (patch) (unidiff) | |
tree | 23fba408f025c5ebff445ff57bbbe2823c0c24d4 | |
parent | 33bc5b6d63d542af268a3af98a7f07c57cce73a4 (diff) | |
download | extrudery-1d8f93c354df4effca90d355841d189ecdec7a27.zip extrudery-1d8f93c354df4effca90d355841d189ecdec7a27.tar.gz extrudery-1d8f93c354df4effca90d355841d189ecdec7a27.tar.bz2 |
a bit of rework and addition of debug cutouts
-rw-r--r-- | another.scad | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/another.scad b/another.scad index 3d804c1..03f3bf9 100644 --- a/another.scad +++ b/another.scad | |||
@@ -209,7 +209,6 @@ module the_extruder( | |||
209 | } | 209 | } |
210 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) { | 210 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) { |
211 | if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else { | 211 | if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else { |
212 | if(debug) translate([0,-lever_thickness/2-1,-gearbox_d]) cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | ||
213 | mirror([0,0,1]) { | 212 | mirror([0,0,1]) { |
214 | translate([0,0,st_thickshell]) | 213 | translate([0,0,st_thickshell]) |
215 | hull() for(o=[0,spring_d]) translate([0,-o,0]) | 214 | hull() for(o=[0,spring_d]) translate([0,-o,0]) |
@@ -310,12 +309,6 @@ module the_extruder( | |||
310 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 309 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
311 | } | 310 | } |
312 | 311 | ||
313 | if(debug) { | ||
314 | translate([mount_d/2,0,-1]) | ||
315 | rotate([0,0,-45]) | ||
316 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+2]); | ||
317 | } | ||
318 | |||
319 | }//difference | 312 | }//difference |
320 | 313 | ||
321 | if(supports) intersection() { | 314 | if(supports) intersection() { |
@@ -385,6 +378,32 @@ module the_extruder( | |||
385 | } | 378 | } |
386 | }//knob module | 379 | }//knob module |
387 | 380 | ||
381 | module debug() { | ||
382 | difference() { | ||
383 | children(); | ||
384 | if(debug) { | ||
385 | // spring tensioner debug cutout | ||
386 | if(tensioner) // TODO: collaps copypasted transformations | ||
387 | translate([-gearbox_d/2,0,0]) | ||
388 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) | ||
389 | translate([0,-lever_thickness/2-1,-gearbox_d]) | ||
390 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | ||
391 | // lever axis debug cutout | ||
392 | translate([mount_d/2,0,-1]) | ||
393 | rotate([0,0,-45]) | ||
394 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); | ||
395 | // idler debug cutout | ||
396 | translate([0,0,ls_z]) | ||
397 | place_idler() | ||
398 | rotate([0,0,-45]) | ||
399 | translate([0,0,-lever_thickness/2-epsilon]) | ||
400 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, | ||
401 | lever_thickness+2*epsilon]); | ||
402 | }//if debug | ||
403 | }//difference | ||
404 | } | ||
405 | |||
406 | debug() | ||
388 | mirrorleft() | 407 | mirrorleft() |
389 | if(what=="lever") color("green",0.7) lever(); | 408 | if(what=="lever") color("green",0.7) lever(); |
390 | else if(what=="body") color("yellow",0.7) body(); | 409 | else if(what=="body") color("yellow",0.7) body(); |