Rendered spindles for the first time
This commit is contained in:
parent
7cc3d0a17c
commit
6d8666dbd5
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
|
@ -15,6 +15,8 @@ include <./Triangles.scad>;
|
||||||
* metric_thread (diameter=10, pitch=1.5, thread_size = 1.6, length=LEN);
|
* metric_thread (diameter=10, pitch=1.5, thread_size = 1.6, length=LEN);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
FINE = 200;
|
||||||
|
|
||||||
OD = 10 + .5;
|
OD = 10 + .5;
|
||||||
PITCH = 1.5;
|
PITCH = 1.5;
|
||||||
THREAD = 1.6;
|
THREAD = 1.6;
|
||||||
|
|
|
@ -9,7 +9,9 @@ DIST=./stl
|
||||||
IMG=./img
|
IMG=./img
|
||||||
|
|
||||||
NOTES=./notes/${V}.csv
|
NOTES=./notes/${V}.csv
|
||||||
FILES=( "spindle_top" "spindle_bottom" "spacer" "top" "spiral" "quarter_a" "quarter_b" "quarter_c" "quarter_d" "insert_s8" "insert_16" "spacer_16" )
|
#"quarter_a" "quarter_b" "quarter_c" "quarter_d"
|
||||||
|
#quarter pieces not rendering properly
|
||||||
|
FILES=( "spindle_bottom" "spindle_top" "spacer" "top" "spiral" "insert_s8" "insert_16" "spacer_16" )
|
||||||
SIZES=( "50ft" "100ft" )
|
SIZES=( "50ft" "100ft" )
|
||||||
|
|
||||||
mkdir -p $DIST
|
mkdir -p $DIST
|
||||||
|
@ -40,9 +42,10 @@ do
|
||||||
|
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
runtime=$((end-start))
|
runtime=$((end-start))
|
||||||
hash=`sha256sum "$stl" | awk '{ print $1 }'`
|
|
||||||
fileSize=`wc -c < "$stl"`
|
fileSize=`wc -c < "$stl"`
|
||||||
fileSize=`echo $fileSize | xargs`
|
fileSize=`echo $fileSize | xargs`
|
||||||
|
|
||||||
if ! [ -x "$(command -v admesh)" ]; then
|
if ! [ -x "$(command -v admesh)" ]; then
|
||||||
facets="N/A"
|
facets="N/A"
|
||||||
volume="N/A"
|
volume="N/A"
|
||||||
|
@ -54,6 +57,7 @@ do
|
||||||
newSize=`wc -c < "$stl"`
|
newSize=`wc -c < "$stl"`
|
||||||
newSize=`echo $newSize | xargs`
|
newSize=`echo $newSize | xargs`
|
||||||
percent=`echo "scale=1;($newSize/$fileSize)*100" | bc`
|
percent=`echo "scale=1;($newSize/$fileSize)*100" | bc`
|
||||||
|
fileSize="${newSize}"
|
||||||
echo "Binary conversion created STL file ${percent}% of original"
|
echo "Binary conversion created STL file ${percent}% of original"
|
||||||
fi
|
fi
|
||||||
ao=`admesh -c "$stl"`
|
ao=`admesh -c "$stl"`
|
||||||
|
@ -61,6 +65,8 @@ do
|
||||||
volume=`echo "$ao" | grep "Number of parts" | awk '{print $8}'`
|
volume=`echo "$ao" | grep "Number of parts" | awk '{print $8}'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
hash=`sha256sum "$stl" | awk '{ print $1 }'`
|
||||||
|
|
||||||
line="${VERSION},${CPU},$stl,$hash,$fileSize,$srchash,$srcsize,$facets,$volume,$runtime"
|
line="${VERSION},${CPU},$stl,$hash,$fileSize,$srchash,$srcsize,$facets,$volume,$runtime"
|
||||||
echo "$line" >> $NOTES
|
echo "$line" >> $NOTES
|
||||||
echo "$line"
|
echo "$line"
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue