Create correct CSG folder before building. Do not commit csg files because they are intermediary? For now.
This commit is contained in:
parent
fa5726a6a8
commit
01106665d2
|
@ -31,9 +31,10 @@ FILES=(
|
||||||
)
|
)
|
||||||
SIZES=( "50ft" "100ft" )
|
SIZES=( "50ft" "100ft" )
|
||||||
|
|
||||||
mkdir -p $DIST
|
mkdir -p "${DIST}"
|
||||||
if [ $STEP = true ]; then
|
if [ $STEP = true ]; then
|
||||||
mkdir -p $CSG
|
mkdir -p "${CSG}"
|
||||||
|
mkdir -p "${CSG}/${SIZE}_${V}/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
render_part () {
|
render_part () {
|
||||||
|
@ -67,7 +68,7 @@ render_part () {
|
||||||
if [[ $firstline == solid* ]]; then
|
if [[ $firstline == solid* ]]; then
|
||||||
#convert from ascii to binary
|
#convert from ascii to binary
|
||||||
tmpBinary=`mktemp`
|
tmpBinary=`mktemp`
|
||||||
admesh -c -b "$stl" "$tmpBinary"
|
admesh -c -b "$tmpBinary" "$stl"
|
||||||
newSize=`wc -c < "$tmpBinary"`
|
newSize=`wc -c < "$tmpBinary"`
|
||||||
newSize=`echo $newSize | xargs`
|
newSize=`echo $newSize | xargs`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue