author | Michael Krelin <hacker@klever.net> | 2018-07-25 21:24:06 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-07-25 21:39:03 (UTC) |
commit | cd3c9592b1b26ed98eda97fbf5b098bdcf4c1abd (patch) (side-by-side diff) | |
tree | 03feb0efc71bc9a063c481f65ab6a4cada31ed05 /multimixer.scad | |
parent | a24158645c0156f5b55c9adce15e16a8eb908ba1 (diff) | |
download | extrudery-cd3c9592b1b26ed98eda97fbf5b098bdcf4c1abd.zip extrudery-cd3c9592b1b26ed98eda97fbf5b098bdcf4c1abd.tar.gz extrudery-cd3c9592b1b26ed98eda97fbf5b098bdcf4c1abd.tar.bz2 |
more flexible debug cutout
-rw-r--r-- | multimixer.scad | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/multimixer.scad b/multimixer.scad index 0893457..21f71e4 100644 --- a/multimixer.scad +++ b/multimixer.scad @@ -3,25 +3,25 @@ epsilon=.01; use <pushfittery.scad>; include <pushfit_data.scad>; module multimixer( filament_d = 1.75, liner_od = 4, liner_id = 2, angle = 15, // to the vertical (output) axis inputs = 4, minshell = 2*extrusion_width, shell = 5*extrusion_width, pf = pushfit_embeddest, - debug = true + debug = 0, // how many inputs -1 the debug cutout spans ) { fnd = 4*PI; fnr = 2*fnd; pushfit_d = pf_d(pf); pushfit_h = pf_h(pf); angular_step = 360/inputs; inputogon_angle = 180*(inputs-2)/inputs; sinsin = sin(angle)*sin(angular_step/2); function l_to(d) = d*cos(asin(sinsin))/sinsin; l_output = liner_od; @@ -81,20 +81,20 @@ module multimixer( foroutput() { translate([0,0,l_output]) pushfit(pf); cylinder(d=liner_od,h=l_input+1,$fn=liner_od*fnd); } hull() { forinputs() translate([0,0,l_fork]) cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd); foroutput() cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd); } if(debug) { translate([0,0,-20/*TODO:*/]) - rotate_extrude(angle=angular_step) + rotate_extrude(angle=angular_step*debug) square([50,100]/*TODO:*/); } } } -multimixer(debug=true); +multimixer(debug=2); |