mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-01-16 13:08:15 +01:00
Removed trailing comma in let() for compatibility with last release.
This commit is contained in:
parent
8951b8b60e
commit
afc50ffe5d
@ -278,8 +278,7 @@ function spiral_wrap(path, profile, pitch, turns) = //! Create a path that spira
|
||||
],
|
||||
path_len = len(path),
|
||||
path_S = [for(i = 0, s = 0; i < path_len; s = s + norm(path[(i + 1) % path_len] - path[i]), i = i + 1) s],
|
||||
n = turns * plen,
|
||||
|
||||
n = turns * plen
|
||||
) [
|
||||
for(i = 0, j = 0, k = 0, zstep = 0;
|
||||
i < n;
|
||||
|
@ -577,6 +577,7 @@ module rd_coil(type, value, pitch = undef) { //! Draw the specified vertical coi
|
||||
function sigmoid(x) = 1 / (1 + exp(-x));
|
||||
z = end + size[3] / 2;
|
||||
h = size[3] - wire_d;
|
||||
turns = rd_coil_turns(type);
|
||||
|
||||
color(rd_coil_colour(type)) {
|
||||
cylinder(d = size.y, h = size.z);
|
||||
@ -585,7 +586,6 @@ module rd_coil(type, value, pitch = undef) { //! Draw the specified vertical coi
|
||||
translate_z(z)
|
||||
cylinder(d = size.x, h = end);
|
||||
}
|
||||
turns = rd_coil_turns(type);
|
||||
|
||||
color(silver)
|
||||
for(side = [-1, 1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user