Improve build process and rebuild with images
This commit is contained in:
parent
8b7aff4eb1
commit
9adce4733c
5
build.sh
5
build.sh
|
@ -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 |
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
Loading…
Reference in New Issue