mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-09-04 04:35:29 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f412cb1736 | ||
|
2b878556fc |
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 798 KiB After Width: | Height: | Size: 799 KiB |
@@ -45,6 +45,7 @@ def plateup(target, part_type, usage = None):
|
|||||||
# Loop through source directories
|
# Loop through source directories
|
||||||
#
|
#
|
||||||
used = []
|
used = []
|
||||||
|
all_sources = []
|
||||||
for dir in [source_dir1, source_dir2]:
|
for dir in [source_dir1, source_dir2]:
|
||||||
if not os.path.isdir(dir):
|
if not os.path.isdir(dir):
|
||||||
continue
|
continue
|
||||||
@@ -60,6 +61,7 @@ def plateup(target, part_type, usage = None):
|
|||||||
# Decide which files to make
|
# Decide which files to make
|
||||||
#
|
#
|
||||||
sources = [file for file in os.listdir(dir) if file.endswith('.scad')]
|
sources = [file for file in os.listdir(dir) if file.endswith('.scad')]
|
||||||
|
all_sources += sources
|
||||||
#
|
#
|
||||||
# Run OpenSCAD on the source files to make the targets
|
# Run OpenSCAD on the source files to make the targets
|
||||||
#
|
#
|
||||||
@@ -100,7 +102,7 @@ def plateup(target, part_type, usage = None):
|
|||||||
#
|
#
|
||||||
# Remove any cruft
|
# Remove any cruft
|
||||||
#
|
#
|
||||||
targets = [file[:-4] + part_type for file in sources]
|
targets = [file[:-4] + part_type for file in all_sources]
|
||||||
for file in os.listdir(target_dir):
|
for file in os.listdir(target_dir):
|
||||||
if file.endswith('.' + part_type):
|
if file.endswith('.' + part_type):
|
||||||
if not file in targets and not file in copied:
|
if not file in targets and not file in copied:
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
@@ -26,7 +26,7 @@
|
|||||||
// e s c
|
// e s c
|
||||||
// s k
|
// s k
|
||||||
Rigid5050 = ["Rigid5050", "rigid SMD5050 low profile", 500, 36, 3, 14.4, 7, 10.4, 0.9, 1.2];
|
Rigid5050 = ["Rigid5050", "rigid SMD5050 low profile", 500, 36, 3, 14.4, 7, 10.4, 0.9, 1.2];
|
||||||
RIGID5050 = ["RIGID5050", "rigid SMD5050" , 500, 36, 3, 14.4, 8.6, 10.4, 0.9, 1.6];
|
RIGID5050 = ["RIGID5050", "rigid SMD5050" , 500, 36, 3, 14.4, 8.6, 9.8, 0.8, 1.6];
|
||||||
|
|
||||||
light_strips = [Rigid5050, RIGID5050,];
|
light_strips = [Rigid5050, RIGID5050,];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user