Create correct CSG folder before building. Do not commit csg files because they are intermediary? For now.

This commit is contained in:
mmcwilliams 2021-10-15 11:39:18 -04:00
parent fa5726a6a8
commit 01106665d2
1 changed files with 4 additions and 3 deletions

View File

@ -31,9 +31,10 @@ FILES=(
)
SIZES=( "50ft" "100ft" )
mkdir -p $DIST
mkdir -p "${DIST}"
if [ $STEP = true ]; then
mkdir -p $CSG
mkdir -p "${CSG}"
mkdir -p "${CSG}/${SIZE}_${V}/"
fi
render_part () {
@ -67,7 +68,7 @@ render_part () {
if [[ $firstline == solid* ]]; then
#convert from ascii to binary
tmpBinary=`mktemp`
admesh -c -b "$stl" "$tmpBinary"
admesh -c -b "$tmpBinary" "$stl"
newSize=`wc -c < "$tmpBinary"`
newSize=`echo $newSize | xargs`