2012-03-19 20:22:54 +02:00
|
|
|
#!/bin/sh
|
|
|
|
while [ "$1" ]; do
|
|
|
|
eval "$1"
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
: ${MILL:=125mil}
|
2012-03-21 04:17:42 +02:00
|
|
|
: ${OVERLAP:=0.5mm}
|
2012-03-19 20:22:54 +02:00
|
|
|
: ${X0:=0mm}
|
|
|
|
: ${Y0:=0mm}
|
|
|
|
: ${Z1:=0mm}
|
|
|
|
: ${PIECE_Z:=0mm}
|
2012-03-22 09:17:49 +02:00
|
|
|
: ${Z_OFFSET:=0mm}
|
2012-03-19 20:22:54 +02:00
|
|
|
: ${CAMEO:=cameo}
|
2012-03-22 09:17:49 +02:00
|
|
|
: ${OUT:=out.gp}
|
2012-03-19 20:22:54 +02:00
|
|
|
|
|
|
|
$CAMEO <<EOF
|
|
|
|
gnuplot $MILL $PART-piece.gp
|
|
|
|
gnuplot $MILL $PART.gp
|
2012-03-22 09:17:49 +02:00
|
|
|
$REVERSE
|
2012-03-19 20:22:54 +02:00
|
|
|
align 1 $X0 $Y0
|
2012-03-22 09:17:49 +02:00
|
|
|
z 0 $Z1
|
|
|
|
z $Z_OFFSET
|
|
|
|
z -$PIECE_Z
|
2012-03-19 20:22:54 +02:00
|
|
|
area $OVERLAP
|
2012-03-22 09:17:49 +02:00
|
|
|
write $OUT
|
2012-03-19 20:22:54 +02:00
|
|
|
EOF
|