Root/vialtray/doit

Source at commit 2db4c1a3a80a5d22de58ed81b9932afe7ea15626 created 8 years 3 months ago.
By Werner Almesberger, cad/test1/: experiment with Free scripted CAD systems (OpenSCAD and Cadmium)
1#!/bin/sh
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:-./tray.pl}
10
11rdata="0 0 0 150 0 0 0 100 0"
12Z=-27.6
13
14rect=`$RECT $rdata | awk '{$3 = ""; print}'`
15
16# cameo: we inline the tool diameter with the data
17
18$GEN |
19  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
20  $ALIGN 0 1 $rect |
21        # angle, reference (lower left corner), rect
22  tee check |
23  $GP2RML 5 4 4
24        # clearance, xy speed, z speed
25

Archive Download this file

Branches:
master



interactive