Skip to content

Commit e5edbed

Browse files
committed
Generate several different kerf-preset laser files and link in README
1 parent d229a6a commit e5edbed

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/3d.yml

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ jobs:
2525
cp 3d/build/laser_parts/raster.png 3d/build/outputs/3d_laser_raster.png
2626
./scripts/annotate_image.sh 3d/build/outputs/3d_laser_raster.png
2727
28+
- name: Generate 2d output (Ponoko 3mm MDF)
29+
run: |
30+
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-mdf
31+
cp 3d/build/laser_parts/combined.svg 3d/build/outputs/3d_laser_vector-ponoko-3mm-mdf.svg
32+
33+
- name: Generate 2d output (Ponoko 3mm Acrylic)
34+
run: |
35+
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-acrylic
36+
cp 3d/build/laser_parts/combined.svg 3d/build/outputs/3d_laser_vector-ponoko-3mm-acrylic.svg
37+
2838
- name: Generate animated gif
2939
run: |
3040
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_gif.py

3d/scripts/openscad.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run(
6767

6868
if variables is not None:
6969
for k, v in variables.items():
70-
if isinstance(v, str) or isinstance(v, bytes):
70+
if isinstance(v, basestring) or isinstance(v, bytes):
7171
try:
7272
v = v.decode('utf-8')
7373
except (UnicodeDecodeError, AttributeError):

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ I'd love to hear your thoughts and questions about this project, and happy to in
4343

4444
**Important:** the files linked below are EXPERIMENTAL and have been auto-generated from the latest commit. They may contain changes that are untested or outright broken. Do not use these unless you are actively making changes to the project and know what you're doing. Otherwise, use the [latest stable release](https://github.com/scottbez1/splitflap/releases/latest).
4545

46-
* Lasercut Vector File ([svg](https://s3.amazonaws.com/splitflap-artifacts/master/3d/3d_laser_vector.svg))
46+
* Lasercut Vector File
47+
* For Ponoko 3mm MDF ([svg](https://s3.amazonaws.com/splitflap-artifacts/master/3d/3d_laser_vector-ponoko-3mm-mdf.svg))
48+
* For Ponoko 3mm acrylic ([svg](https://s3.amazonaws.com/splitflap-artifacts/master/3d/3d_laser_vector-ponoko-3mm-acrylic.svg))
49+
* For generic material (0.18mm kerf correction) ([svg](https://s3.amazonaws.com/splitflap-artifacts/master/3d/3d_laser_vector.svg))
4750
* Classic Controller electronics
4851
* Bill of Materials ([csv](https://s3.amazonaws.com/splitflap-artifacts/master/electronics/bom/splitflap-bom.csv), [interactive](https://s3.amazonaws.com/splitflap-artifacts/master/electronics/bom/splitflap-ibom.html))
4952
* PCB ([gerbers](https://s3.amazonaws.com/splitflap-artifacts/master/electronics/classic-jlc/gerbers.zip) / [pdf](https://s3.amazonaws.com/splitflap-artifacts/master/electronics/classic-pcb-packet.pdf))

0 commit comments

Comments
 (0)