mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-05 06:57:27 +02:00
Removed trailing comma in let() for compatibility with last release.
This commit is contained in:
@@ -278,8 +278,7 @@ function spiral_wrap(path, profile, pitch, turns) = //! Create a path that spira
|
|||||||
],
|
],
|
||||||
path_len = len(path),
|
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],
|
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;
|
for(i = 0, j = 0, k = 0, zstep = 0;
|
||||||
i < n;
|
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));
|
function sigmoid(x) = 1 / (1 + exp(-x));
|
||||||
z = end + size[3] / 2;
|
z = end + size[3] / 2;
|
||||||
h = size[3] - wire_d;
|
h = size[3] - wire_d;
|
||||||
|
turns = rd_coil_turns(type);
|
||||||
|
|
||||||
color(rd_coil_colour(type)) {
|
color(rd_coil_colour(type)) {
|
||||||
cylinder(d = size.y, h = size.z);
|
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)
|
translate_z(z)
|
||||||
cylinder(d = size.x, h = end);
|
cylinder(d = size.x, h = end);
|
||||||
}
|
}
|
||||||
turns = rd_coil_turns(type);
|
|
||||||
|
|
||||||
color(silver)
|
color(silver)
|
||||||
for(side = [-1, 1])
|
for(side = [-1, 1])
|
||||||
|
Reference in New Issue
Block a user