Root/cntr/cam/doit

Source at commit f7f8eb28ba220790a1ef35823642a3cd7efb582c created 13 years 1 month ago.
By Werner Almesberger, atben.brd: layout cleanup; removed de facto contacts between ground zones
1#!/bin/sh -e
2DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
3RECT=$DIR/rect/rect
4ALIGN=$DIR/align/align
5ZMAP=$DIR/zmap/zmap
6GP2RML=$DIR/gp2rml/gp2rml
7CAMEO=../../../cae-tools/cameo/cameo
8
9GEN=${1:-./pcb.pl}
10
11rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2"
12rdate="15.9 13.1 -57.2 15.9 77.4 -57.1 120.8 15.1 -57.0"
13rdate="17.2 9.5 -57.0 21.5 76.2 -57.1 126.8 9.0 -56.9"
14# lower Z by 0.5 mm relative to highest point (-56.8)
15Z=-57.3
16
17rect=`$RECT $rdata | awk '{$3 = ""; print}'`
18
19$GEN |
20  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
21  $CAMEO -d 0.4445 |
22  $ALIGN 0 1 $rect |
23    # angle, reference (lower left corner), rect
24  $GP2RML 2 0.5 0.5
25    # clearance, xy speed, z speed
26# since everything is in the same plane, z clearance must be thickness plus
27# real clearance !
28

Archive Download this file



interactive