Don't render images as --preview, just render completely
This commit is contained in:
parent
49e855042e
commit
06ec3c961c
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue