diff --git a/scripts/deps.sh b/scripts/deps.sh index df4dc38..0299f9d 100644 --- a/scripts/deps.sh +++ b/scripts/deps.sh @@ -12,6 +12,7 @@ DEPS=( sqlite3 admesh openscad + python3 ) for dep in ${DEPS[@]}; do diff --git a/scripts/v3.sh b/scripts/v3.sh index 5909d9c..2b8b36f 100644 --- a/scripts/v3.sh +++ b/scripts/v3.sh @@ -66,6 +66,8 @@ render_part () { else firstline=`head -n 1 "$stl"` if [[ $firstline == solid* ]]; then + #order stl file if ascii + python3 scripts/c14n_stl.py "$stl" #convert from ascii to binary tmpBinary=`mktemp` admesh -c -b "$tmpBinary" "$stl"