summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--multimixer.scad14
1 files changed, 9 insertions, 5 deletions
diff --git a/multimixer.scad b/multimixer.scad
index 21f71e4..80f41f1 100644
--- a/multimixer.scad
+++ b/multimixer.scad
@@ -13,6 +13,7 @@ module multimixer(
13 shell = 5*extrusion_width, 13 shell = 5*extrusion_width,
14 pf = pushfit_embeddest, 14 pf = pushfit_embeddest,
15 debug = 0, // how many inputs -1 the debug cutout spans 15 debug = 0, // how many inputs -1 the debug cutout spans
16 print = false,
16) { 17) {
17 fnd = 4*PI; fnr = 2*fnd; 18 fnd = 4*PI; fnr = 2*fnd;
18 19
@@ -36,10 +37,8 @@ module multimixer(
36 rotate([180,0,0]) children(); 37 rotate([180,0,0]) children();
37 } 38 }
38 39
39 //translate([pf_d(pf)/2+shell,0,0]) 40 module laydown() {
40 //translate([0,0,l_output+pushfit_h]) 41 r = pushfit_d/2+shell;
41 module laydown(dia) {
42 r = dia/2;
43 h_bottom = l_output+pushfit_h; 42 h_bottom = l_output+pushfit_h;
44 /* The top point on the cylinder that will touch the bed */ 43 /* The top point on the cylinder that will touch the bed */
45 x0 = r*cos(angular_step/2); 44 x0 = r*cos(angular_step/2);
@@ -59,7 +58,12 @@ module multimixer(
59 rotate([0,0,angular_step/2-90]) 58 rotate([0,0,angular_step/2-90])
60 children(); 59 children();
61 } 60 }
62 laydown(dia=pushfit_d+shell*2) difference() { 61 module finalize() {
62 if(print) laydown() children();
63 else children();
64 }
65
66 finalize() difference() {
63 hull() { 67 hull() {
64 forinputs() 68 forinputs()
65 translate([0,0,l_input+pushfit_h]) mirror([0,0,1]) 69 translate([0,0,l_input+pushfit_h]) mirror([0,0,1])