Now ready to render
This commit is contained in:
parent
82fa532c1c
commit
0a57c89f2f
|
@ -32,7 +32,7 @@ do
|
||||||
png="${IMG}/gnal_${SIZE}_${V}_${FILE}.png"
|
png="${IMG}/gnal_${SIZE}_${V}_${FILE}.png"
|
||||||
echo "${scad} - ${FILE}"
|
echo "${scad} - ${FILE}"
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
if [ "${SIZE}" -eq "100ft"]; then
|
if [[ "${SIZE}" == "100ft" ]]; then
|
||||||
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}"
|
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}"
|
||||||
else
|
else
|
||||||
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=600" "${scad}"
|
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=600" "${scad}"
|
||||||
|
@ -52,7 +52,7 @@ do
|
||||||
|
|
||||||
echo "Rendering image of ${stl}..."
|
echo "Rendering image of ${stl}..."
|
||||||
|
|
||||||
if [ "${FILE}" -eq "spiral"]; then
|
if [[ "${FILE}" -eq "spiral" ]]; then
|
||||||
tmp=`mktemp`
|
tmp=`mktemp`
|
||||||
fullPath=`realpath "${stl}"`
|
fullPath=`realpath "${stl}"`
|
||||||
data="import(\"${fullPath}\");"
|
data="import(\"${fullPath}\");"
|
||||||
|
|
Loading…
Reference in New Issue