ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/objview.csh
(Generate patch)

Comparing ray/src/util/objview.csh (file contents):
Revision 2.6 by gwlarson, Wed Jun 10 17:50:49 1998 UTC vs.
Revision 2.11 by greg, Fri Nov 21 01:30:17 2008 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "$SunId$ SGI"
2 > # RCSid: $Id$
3   #
4   # Make a nice view of an object
5   # Arguments are scene input files
6   #
7 < set tmpdir=/usr/tmp
7 > set tmpdir=/tmp
8   set octree=$tmpdir/ov$$.oct
9   set lights=$tmpdir/lt$$.rad
10   set rif=$tmpdir/ov$$.rif
11   set tmpfiles="$octree $lights $rif"
12 + set raddev="x11"
13   set up="Z"
14   set vw="XYZ"
15 + set rendopts=""
16   set opts=""
17   while ($#argv > 0)
18          switch ($argv[1])
19 <        case -g:
19 >        case -g*:
20                  set usegl
21                  breaksw
22          case -u:
# Line 25 | Line 27 | while ($#argv > 0)
27          case -w:
28                  set opts=($opts $argv[1])
29                  breaksw
30 +        case -b*:
31 +                set rendopts=($rendopts -bv)
32 +                breaksw
33          case -v:
34                  shift argv
35 <                set vw=$argv[1]
35 >                set vw="$argv[1]"
36                  breaksw
37 +        case -N:
38 +                shift argv
39 +                set opts=($opts -N $argv[1])
40 +                set radopt
41 +                breaksw
42          case -o:
43                  shift argv
44 <                set opts=($opts -o $argv[1])
44 >                set raddev="$argv[1]"
45                  set radopt
46                  breaksw
47          case -V:
# Line 40 | Line 50 | while ($#argv > 0)
50                  set radopt
51                  breaksw
52          case -S:
43        case -b:
53                  set opts=($opts $argv[1])
54                  set glradopt
55                  breaksw
56          case -*:
57                  echo "Bad option: $argv[1]"
58                  exit 1
50                breaksw
59          default:
60                  break
61          endsw
# Line 89 | Line 97 | UP= $up
97   view= $vw
98   OCTREE= $octree
99   oconv= -f
100 + render= $rendopts
101   _EOF_
102  
103   if ( $?usegl ) then
104          glrad $opts $rif
105   else
106 <        rad -o x11 $opts $rif
106 >        rad -o $raddev $opts $rif
107   endif
108  
109   quit:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines