From 5ab7711ef9b9180121e7dc4e8d33afd5a5ff97d1 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 25 Jul 2018 21:41:27 +0000 Subject: make printable position conditional and remove the diameter parameter, because why :) --- diff --git a/multimixer.scad b/multimixer.scad index 21f71e4..80f41f1 100644 --- a/multimixer.scad +++ b/multimixer.scad @@ -13,6 +13,7 @@ module multimixer( shell = 5*extrusion_width, pf = pushfit_embeddest, debug = 0, // how many inputs -1 the debug cutout spans + print = false, ) { fnd = 4*PI; fnr = 2*fnd; @@ -36,10 +37,8 @@ module multimixer( rotate([180,0,0]) children(); } - //translate([pf_d(pf)/2+shell,0,0]) - //translate([0,0,l_output+pushfit_h]) - module laydown(dia) { - r = dia/2; + module laydown() { + r = pushfit_d/2+shell; h_bottom = l_output+pushfit_h; /* The top point on the cylinder that will touch the bed */ x0 = r*cos(angular_step/2); @@ -59,7 +58,12 @@ module multimixer( rotate([0,0,angular_step/2-90]) children(); } - laydown(dia=pushfit_d+shell*2) difference() { + module finalize() { + if(print) laydown() children(); + else children(); + } + + finalize() difference() { hull() { forinputs() translate([0,0,l_input+pushfit_h]) mirror([0,0,1]) -- cgit v0.9.0.2