From 54f16a864a6ac1060f44c9c4f3eddc295ad8c7d3 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 16 Jan 2023 21:58:57 -0500 Subject: [PATCH] Add build step which orders stl if ascii --- scripts/deps.sh | 1 + scripts/v3.sh | 2 ++ 2 files changed, 3 insertions(+) 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"