mirror of https://github.com/vitalif/openscad
Added create-stl.sh
git-svn-id: http://svn.clifford.at/openscad/trunk@550 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
438825a308
commit
f8a3ce8862
|
@ -1,12 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
cmd="openscad"
|
||||
[ -x "./openscad" ] && cmd="./openscad"
|
||||
[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD"
|
||||
SCRIPTDIR=`dirname $0`
|
||||
|
||||
mkdir -p output
|
||||
for f in examples/*.scad; do
|
||||
echo `basename $f .scad`
|
||||
"$cmd" -s output/`basename $f .scad`.stl $f
|
||||
$SCRIPTDIR/create-stl.sh $f output/`basename $f .scad`.stl
|
||||
done
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# != 2 ]; then
|
||||
echo "Usage: $0 scad-file stl-file"
|
||||
exit 1
|
||||
fi
|
||||
scadfile=$1
|
||||
stlfile=$2
|
||||
|
||||
cmd="openscad"
|
||||
[ -x "./openscad" ] && cmd="./openscad"
|
||||
[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD"
|
||||
|
||||
"$cmd" -s $stlfile $scadfile
|
Loading…
Reference in New Issue