README and slicing work

This commit is contained in:
mmcwilliams 2020-06-19 11:21:14 -04:00
parent 52a9386cf7
commit b95ec7ef71
3 changed files with 36 additions and 1 deletions

View File

@ -107,7 +107,7 @@ These scripts will render STL files, PNG images of the files and then
### Benchmarks ### Benchmarks
The `scripts/benchmark.sh` script will run various tests on the different approaches to generating spirals in the `spiral` directory. The `scripts/benchmark.sh` script will run various tests on the different approaches to generating spirals in the `spiral` directory. See notes on the actual results of this script [below](#benchmarks)
----- -----
@ -167,6 +167,12 @@ The goals of V3 are to **greatly** optimize the spiral generation code for speed
This version will also contain a 4x reel stacking feature so that all models can be stacked with 3 spiral reels and a top piece. That will give 200ft capacity to the 50ft model and 400ft capacity to the 100ft model. This version will also contain a 4x reel stacking feature so that all models can be stacked with 3 spiral reels and a top piece. That will give 200ft capacity to the 50ft model and 400ft capacity to the 100ft model.
<a name="benchmarks"></a>
## Benchmarks
In the process of publishing this repository I started questioning claims I was making in this Readme. Throughout the development of this processing reel I've been plagued by long render times.
## License ## License
MIT License MIT License

5
scripts/curaengine.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
STL="$1"
curaengine

24
scripts/slice.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
STL="$1"
#const elapsedParse = 'Total time elapsed '
#const timeParse = 'Print time (s): '
#const timeStrParse = 'Print time (hr|min|s): '
#const materialParse = 'Filament (mm^3): '
if ! [ -x "$(command -v curaengine)" ]; then
echo "printtime N/A"
echo "volume N/A"
echo "slicetime N/A"
else
start=`date +%s`
output=`bash ./scripts/curaengine.sh "${STL}"`
end=`date +%s`
slicetime=$((end-start))
echo "printtime ${printtime}"
echo "volume ${volume}"
echo "slicetime ${slicetime}"
fi