1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-25 22:49:07 +02:00

Compare commits

..

3 Commits

Author SHA1 Message Date
Chris Palmer
afc50ffe5d Removed trailing comma in let() for compatibility with last release. 2024-10-02 08:41:41 +01:00
Chris Palmer
8951b8b60e Merge branch 'jijamik-patch-1' 2024-09-30 12:42:03 +01:00
Chris Palmer
c33d954db6 Updated changelog. 2024-09-30 12:41:14 +01:00
3 changed files with 7 additions and 3 deletions

View File

@@ -3,6 +3,11 @@
This changelog is generated by `changelog.py` using manually added semantic version tags to classify commits as breaking changes, additions or fixes. This changelog is generated by `changelog.py` using manually added semantic version tags to classify commits as breaking changes, additions or fixes.
#### [v21.28.1](https://github.com/nophead/NopSCADlib/releases/tag/v21.28.1 "show release") Fixes [...](https://github.com/nophead/NopSCADlib/compare/v21.28.0...v21.28.1 "diff with v21.28.0")
* 2024-09-30 [`8fb7ec0`](https://github.com/nophead/NopSCADlib/commit/8fb7ec02138f30c5f4b2a72c723ea01d753aeb61 "show commit") [C.P.](# "Chris Palmer") Updated images.
* 2024-09-25 [`f6a3717`](https://github.com/nophead/NopSCADlib/commit/f6a371769d2850037dc15c94366d14c126efe4ba "show commit") [J.](# "jijamik") Corrected HGH20CA `carriage_pitch_x` value.
### [v21.28.0](https://github.com/nophead/NopSCADlib/releases/tag/v21.28.0 "show release") Additions [...](https://github.com/nophead/NopSCADlib/compare/v21.27.1...v21.28.0 "diff with v21.27.1") ### [v21.28.0](https://github.com/nophead/NopSCADlib/releases/tag/v21.28.0 "show release") Additions [...](https://github.com/nophead/NopSCADlib/compare/v21.27.1...v21.28.0 "diff with v21.27.1")
* 2024-09-30 [`e4b1b68`](https://github.com/nophead/NopSCADlib/commit/e4b1b686ff12a415c6109f311c6c36104d8a7b0c "show commit") [C.P.](# "Chris Palmer") Added `rd_cm_choke(),` `rd_coil()` and `spiral_wrap()`. * 2024-09-30 [`e4b1b68`](https://github.com/nophead/NopSCADlib/commit/e4b1b686ff12a415c6109f311c6c36104d8a7b0c "show commit") [C.P.](# "Chris Palmer") Added `rd_cm_choke(),` `rd_coil()` and `spiral_wrap()`.
Added 10mm ceramic disc capacitors. Added 10mm ceramic disc capacitors.

View File

@@ -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;

View File

@@ -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])