Add build step which orders stl if ascii
This commit is contained in:
parent
bc5789018e
commit
54f16a864a
|
@ -12,6 +12,7 @@ DEPS=(
|
|||
sqlite3
|
||||
admesh
|
||||
openscad
|
||||
python3
|
||||
)
|
||||
|
||||
for dep in ${DEPS[@]}; do
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue