mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-09-04 04:35:29 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
119c2cb6f4 | ||
|
24b391578b | ||
|
ec49ce1a6c |
@@ -3,6 +3,9 @@
|
||||
This changelog is generated by `changelog.py` using manually added semantic version tags to classify commits as breaking changes, additions or fixes.
|
||||
|
||||
|
||||
#### [v16.0.1](https://github.com/nophead/NopSCADlib/releases/tag/v16.0.1 "show release") Fixes [...](https://github.com/nophead/NopSCADlib/compare/v16.0.0...v16.0.1 "diff with v16.0.0")
|
||||
* 2021-09-12 [`f0c25d3`](https://github.com/nophead/NopSCADlib/commit/f0c25d37b0c19f76c3f3e0b4d9cabc7587f9efb5 "show commit") [C.P.](# "Chris Palmer") Workarounds for bugs in the OpenSCAD snapshots.
|
||||
|
||||
## [v16.0.0](https://github.com/nophead/NopSCADlib/releases/tag/v16.0.0 "show release") Breaking Changes [...](https://github.com/nophead/NopSCADlib/compare/v15.25.0...v16.0.0 "diff with v15.25.0")
|
||||
* 2021-09-11 [`3299aad`](https://github.com/nophead/NopSCADlib/commit/3299aad5c83d1fe21d3bdddd1450f8de19078d13 "show commit") [C.P.](# "Chris Palmer") Parametric potentiometers added, changes PCB "potentiometer" parameters.
|
||||
The first one is now the type that defaults to the previous BigTreeTech version.
|
||||
|
@@ -72,7 +72,7 @@ def update_image(tmp_name, png_name):
|
||||
if pixels < 0 or pixels > threshold:
|
||||
shutil.copyfile(tmp_name, png_name)
|
||||
print(Fore.YELLOW + png_name + " updated" + Fore.WHITE, pixels if pixels > 0 else '')
|
||||
if png_name.endswith('_tn.png'):
|
||||
if png_name.endswith('_tn.png') and os.path.isfile(diff_name):
|
||||
os.remove(diff_name)
|
||||
else:
|
||||
os.utime(png_name, None)
|
||||
|
@@ -1196,9 +1196,10 @@ module pcb(type) { //! Draw specified PCB
|
||||
}
|
||||
if(fr4 && len(grid) < 3 && pcb_holes(type)) { // oval lands at the ends
|
||||
screw_x = pcb_coord(type, pcb_holes(type)[0]).x;
|
||||
both_ends = len(pcb_holes(type)) > 2;
|
||||
y0 = pcb_grid(type).y;
|
||||
rows = round((pcb_width(type) - 2 * y0) / inch(0.1));
|
||||
for(end = [-1, 1], y = [1 : rows - 1])
|
||||
for(end = both_ends ? [-1, 1] : [1], y = [1 : rows - 1])
|
||||
translate([end * screw_x, y0 + y * inch(0.1) - pcb_width(type) / 2])
|
||||
hull()
|
||||
for(x = [-1, 1])
|
||||
|
Reference in New Issue
Block a user