Don't render images as --preview, just render completely

This commit is contained in:
mmcwilliams 2020-05-29 12:07:42 -04:00
parent 49e855042e
commit 06ec3c961c
2 changed files with 3 additions and 18 deletions

View File

@ -47,14 +47,6 @@ do
echo "Rendering image of ${stl}..." echo "Rendering image of ${stl}..."
if [[ "${FILE}" == "spiral" ]]; then openscad -o "$png" --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}"
tmp=`mktemp`
fullPath=`realpath "${stl}"`
data="import(\"${fullPath}\");"
echo > "${tmp}.scad"
openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${tmp}.scad"
else
openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}"
fi
done done
done done

View File

@ -52,14 +52,7 @@ do
echo "Rendering image of ${stl}..." echo "Rendering image of ${stl}..."
if [[ "${FILE}" -eq "spiral" ]]; then openscad -o "$png" --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}"
tmp=`mktemp`
fullPath=`realpath "${stl}"`
data="import(\"${fullPath}\");"
echo > "${tmp}.scad"
openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${tmp}.scad"
else
openscad -o "$png" --preview --imgsize=1920,1080 --colorscheme=DeepOcean -D "PART=\"${FILE}\"" "${scad}"
fi
done done
done done