mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-18 20:45:00 +02:00
26 lines
331 B
Bash
26 lines
331 B
Bash
|
#!/bin/sh
|
||
|
while [ "$1" ]; do
|
||
|
eval "$1"
|
||
|
shift
|
||
|
done
|
||
|
|
||
|
: ${MILL:=125mil}
|
||
|
: ${OVERLAP:=0.3mm}
|
||
|
: ${X0:=0mm}
|
||
|
: ${Y0:=0mm}
|
||
|
: ${Z1:=0mm}
|
||
|
: ${PIECE_Z:=0mm}
|
||
|
: ${CAMEO:=cameo}
|
||
|
|
||
|
echo Z1 is $Z1 1>&2
|
||
|
|
||
|
$CAMEO <<EOF
|
||
|
gnuplot $MILL $PART-piece.gp
|
||
|
gnuplot $MILL $PART.gp
|
||
|
align 1 $X0 $Y0
|
||
|
z 0 ${Z1}
|
||
|
z -${PIECE_Z}
|
||
|
area $OVERLAP
|
||
|
write $PART-area.gp
|
||
|
EOF
|