1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-22 19:37:43 +02:00
wernermisc/vialtray/doit

25 lines
554 B
Plaintext
Raw Normal View History

#!/bin/sh
DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
RECT=$DIR/rect/rect
ALIGN=$DIR/align/align
ZMAP=$DIR/zmap/zmap
GP2RML=$DIR/gp2rml/gp2rml
CAMEO=../../../cae-tools/cameo/cameo
GEN=${1:-./tray.pl}
rdata="0 0 0 150 0 0 0 100 0"
Z=-27.6
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
# cameo: we inline the tool diameter with the data
$GEN |
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
$ALIGN 0 1 $rect |
# angle, reference (lower left corner), rect
tee check |
$GP2RML 5 4 4
# clearance, xy speed, z speed