mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-22 02:07:10 +02:00
1d72af733e
This doesn't work yet. In particular, going through "cameo" doesn't seem the most convenient choice, since "cameo" requires paths to be closed, which is something the paths we use here aren't. (Conceptually, thet are closed, but the implementation skips some small segments.) This commit is just a snapshot before I experiment with changing the algorithm.
29 lines
730 B
Bash
29 lines
730 B
Bash
#!/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:-./pcb.pl}
|
|
|
|
# manual tool positioning !!
|
|
rdate="0 0 0 150 0 0 0 100 0"
|
|
# lower Z by 0.5 mm relative to highest point (-56.8)
|
|
Z=0
|
|
|
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
|
|
|
# cameo: we inline the tool diameter with the data
|
|
|
|
$GEN |
|
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
|
$CAMEO -d 0 |
|
|
$ALIGN 0 1 $rect |
|
|
# angle, reference (lower left corner), rect
|
|
$GP2RML 20 2 2
|
|
# clearance, xy speed, z speed
|
|
# since everything is in the same plane, z clearance must be thickness plus
|
|
# real clearance !
|