mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fixed some bugs with wiring()
This commit is contained in:
parent
e3227ef66b
commit
62ea2f5a8a
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue