Line | |
---|
1 | #!/bin/awk -f |
---|
2 | # MEDERNACH Emmanuel Aug 2000 |
---|
3 | # |
---|
4 | # This script create a script for SBT to |
---|
5 | # show errors. You need to provide the solid |
---|
6 | # |
---|
7 | # |
---|
8 | # Usage : ErrorView <log file> > file.SBT |
---|
9 | |
---|
10 | BEGIN { |
---|
11 | print "# ErrorView generated script for viewing error in SBT #" ; |
---|
12 | print "/vis/open VRML2FILE" |
---|
13 | print "/vis/viewer/set/style wireframe" |
---|
14 | print "#/vis/open VRML1FILE" |
---|
15 | print "/vis/drawVolume test" |
---|
16 | print "/tracking/storeTrajectory 1" |
---|
17 | print "/test/errorFileName " ARGV[1] ; |
---|
18 | } |
---|
19 | |
---|
20 | # print the solid command |
---|
21 | NR == 2 { print substr($0, 3) ;} |
---|
22 | { print "#" $0 ; } |
---|
23 | $1 ~ /[0-9]+/ { |
---|
24 | print "/test/draw " $1 ; |
---|
25 | print "/test/pause" ; |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.