From 62ea2f5a8a30703d40f7021ea5d685d2df7c9588 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Tue, 9 Oct 2018 15:43:50 -0700 Subject: [PATCH] Fixed some bugs with wiring() --- wiring.scad | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wiring.scad b/wiring.scad index 61e454c..950873c 100644 --- a/wiring.scad +++ b/wiring.scad @@ -92,9 +92,7 @@ module wiring(path, wires, wirediam=2, fillet=10, wirenum=0, bezsteps=12) { n = max(segs(wirediam), 8); r = wirediam/2; for (i = [0:wires-1]) { - extpath = [for (a = [0:(360.0/n):360]) [r*cos(a), r*sin(a)] + offsets[i]]; - roty = matrix3_yrot(90-phi); - rotz = matrix3_zrot(theta); + extpath = [for (j = [0:n-1]) let(a=j*360/n) [r*cos(a)+offsets[i][0], r*sin(a)+offsets[i][1]]]; color(colors[(i+wirenum)%len(colors)]) { extrude_2dpath_along_3dpath(extpath, poly); }