Improve build process and rebuild with images

This commit is contained in:
mattmcw 2022-08-16 20:52:31 -04:00
parent 8b7aff4eb1
commit 9adce4733c
9 changed files with 18071 additions and 18066 deletions

View File

@ -1,5 +1,8 @@
#!/bin/bash
mkdir -p stl
mkdir -p img
SCAD="./takeup.scad"
PARTS=(
"slip_coupling"
@ -11,7 +14,9 @@ PARTS=(
for part in "${PARTS[@]}"
do
stl="./stl/takeup_${part}.stl"
png="./img/takeup_${part}.png"
openscad -o "${stl}" -D "PART=\"${part}\";" "${SCAD}"
openscad -o "${png}" -D "PART=\"${part}\";" --imgsize=1024,1024 --colorscheme=DeepOcean "${SCAD}"
done
openscad --preview -o debug.png -D "PART=\"preview\";" "${SCAD}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
img/takeup_mount_plate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff