author | Michael Krelin <hacker@klever.net> | 2018-07-31 19:51:59 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-07-31 19:51:59 (UTC) |
commit | 4a82ab895f87a13be001635118499243f3a6171e (patch) (side-by-side diff) | |
tree | 6ba4b3fe42dae62649c4b6d477447f8a77accc6f /multiswitch.scad | |
parent | 2489b5446f56dbabbca9b4ea9f40870c7f4f69e6 (diff) | |
download | extrudery-4a82ab895f87a13be001635118499243f3a6171e.zip extrudery-4a82ab895f87a13be001635118499243f3a6171e.tar.gz extrudery-4a82ab895f87a13be001635118499243f3a6171e.tar.bz2 |
a tiny bit more compact
-rw-r--r-- | multiswitch.scad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/multiswitch.scad b/multiswitch.scad index ae85ee3..2b909a9 100644 --- a/multiswitch.scad +++ b/multiswitch.scad @@ -25,17 +25,17 @@ module multiswitch( pushfit_h = pf_h(pf); angular_step = 360/inputs; lod = liner_od+liner_d_tolerance; // effective liner diameter sinsin = sin(angle)*sin(angular_step/2); function l_to(d) = d*cos(asin(sinsin))/sinsin; l_output = lod; - l_input = l_to(pushfit_d/2+minshell); + l_input = l_to((pushfit_d+minshell)/2); l_fork = l_to(liner_id/2); l_narrow = l_to(lod/2+minshell); module forinputs() { for(zr=[0:angular_step:359]) rotate([0,0,zr]) rotate([0,angle,0]) children(); }//forinputs module module foroutput() { rotate([180,0,0]) children(); |