Skip to content

Instantly share code, notes, and snippets.

@srvanderplas
Created January 31, 2019 19:21
Show Gist options
  • Save srvanderplas/796333211831f6823337f9d7de26d13a to your computer and use it in GitHub Desktop.
Save srvanderplas/796333211831f6823337f9d7de26d13a to your computer and use it in GitHub Desktop.
Thumbnails from stl files
#!/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