summaryrefslogtreecommitdiff
path: root/multimixer.scad
Unidiff
Diffstat (limited to 'multimixer.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--multimixer.scad6
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
@@ -7,17 +7,17 @@ include <pushfit_data.scad>;
7module multimixer( 7module multimixer(
8 filament_d = 1.75, 8 filament_d = 1.75,
9 liner_od = 4, liner_id = 2, 9 liner_od = 4, liner_id = 2,
10 angle = 15, // to the vertical (output) axis 10 angle = 15, // to the vertical (output) axis
11 inputs = 4, 11 inputs = 4,
12 minshell = 2*extrusion_width, 12 minshell = 2*extrusion_width,
13 shell = 5*extrusion_width, 13 shell = 5*extrusion_width,
14 pf = pushfit_embeddest, 14 pf = pushfit_embeddest,
15 debug = true 15 debug = 0, // how many inputs -1 the debug cutout spans
16) { 16) {
17 fnd = 4*PI; fnr = 2*fnd; 17 fnd = 4*PI; fnr = 2*fnd;
18 18
19 pushfit_d = pf_d(pf); 19 pushfit_d = pf_d(pf);
20 pushfit_h = pf_h(pf); 20 pushfit_h = pf_h(pf);
21 21
22 angular_step = 360/inputs; 22 angular_step = 360/inputs;
23 inputogon_angle = 180*(inputs-2)/inputs; 23 inputogon_angle = 180*(inputs-2)/inputs;
@@ -85,16 +85,16 @@ module multimixer(
85 hull() { 85 hull() {
86 forinputs() 86 forinputs()
87 translate([0,0,l_fork]) cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd); 87 translate([0,0,l_fork]) cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd);
88 foroutput() 88 foroutput()
89 cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd); 89 cylinder(d=liner_id,h=epsilon,$fn=liner_id*fnd);
90 } 90 }
91 if(debug) { 91 if(debug) {
92 translate([0,0,-20/*TODO:*/]) 92 translate([0,0,-20/*TODO:*/])
93 rotate_extrude(angle=angular_step) 93 rotate_extrude(angle=angular_step*debug)
94 square([50,100]/*TODO:*/); 94 square([50,100]/*TODO:*/);
95 } 95 }
96 } 96 }
97 97
98} 98}
99 99
100multimixer(debug=true); 100multimixer(debug=2);