Created
January 31, 2019 19:21
-
-
Save srvanderplas/796333211831f6823337f9d7de26d13a to your computer and use it in GitHub Desktop.
Thumbnails from stl files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in *.stl; | |
do T=__tmp__$i; | |
b=`basename $i`; | |
echo import\(\"$i\"\)\; | |
>$T; | |
openscad -o $b.png --render --colorscheme=Nature --camera0,0,0,30,-30,0 --imgsize=600,600 --projection=o $T; | |
rm $T; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment