Root/bacon/case/cam.sh

1#!/bin/sh
2while [ "$1" ]; do
3    eval "$1"
4    shift
5done
6
7: ${MILL:=125mil}
8: ${OVERLAP:=1.6mm}
9: ${X0:=0mm}
10: ${Y0:=0mm}
11: ${Z1:=0mm}
12: ${PIECE_Z:=0mm}
13: ${Z_OFFSET:=0mm}
14: ${CAMEO:=cameo}
15: ${OUT:=out.gp}
16
17$CAMEO <<EOF
18gnuplot $MILL $PART-piece.gp
19gnuplot $MILL $PART.gp
20$REVERSE
21align 1 $X0 $Y0
22z 0 $Z1
23z $Z_OFFSET
24z -$PIECE_Z
25area $OVERLAP
26write $OUT
27EOF
28

Archive Download this file

Branches:
master



interactive