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

Comparing ray/src/util/debugcal.csh (file contents):
Revision 2.5 by greg, Mon Sep 30 12:46:47 1996 UTC vs.
Revision 2.7 by greg, Thu Dec 19 16:56:31 2013 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "$SunId$ LBL"
2 > # RCSid: $Id$
3   #
4   # Script to debug cal files for Radiance
5   #
# Line 12 | Line 12 | if ( $#argv < 2 ) then
12          echo "Usage: $0 octree [rcalc options]"
13          exit 1
14   endif
15 if ( ! $?RAYPATH ) then
16        set RAYPATH=.:/usr/local/lib/ray
17 endif
18 set initfile=
19 foreach d (`echo $RAYPATH | sed 's/:/ /g'`)
20        if ( -r $d/rayinit.cal ) then
21                set initfile="-f $d/rayinit.cal"
22                break
23        endif
24 end
15  
16   rtrace -h- -x 1 -odNplL $1 | rcalc -u -e 'Dx=$1;Dy=$2;Dz=$3' \
17                  -e 'Nx=$4;Ny=$5;Nz=$6;Px=$7;Py=$8;Pz=$9' \
# Line 30 | Line 20 | rtrace -h- -x 1 -odNplL $1 | rcalc -u -e 'Dx=$1;Dy=$2;
20                  -e 'Rdot=-Dx*Nx-Dy*Ny-Dz*Nz' -e 'RdotP=Rdot' \
21                  -e 'NxP=Nx;NyP=Ny;NzP=Nz' -e 'CrP=A1;CgP=A2;CbP=A3' \
22                  -e 'DxA:0;DyA:0;DzA:0' \
23 <                $initfile $argv[2-]:q
23 >                -f rayinit.cal $argv[2-]:q

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines