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.7 by greg, Thu Dec 19 16:56:31 2013 UTC vs.
Revision 2.8 by greg, Thu Aug 26 18:00:39 2021 UTC

# Line 5 | Line 5
5   #
6   # Takes octree and rcalc options as arguments.
7   # One of the rcalc options should be -f calfile.
8 < # Note that the real arguments A1, A2, etc must also be given.
8 > # Note that the real arguments arg(n) or A1, A2, etc must also be given.
9   # Input is a ray origin and direction, such as that produced by ximage.
10   #
11   if ( $#argv < 2 ) then
# Line 13 | Line 13 | if ( $#argv < 2 ) then
13          exit 1
14   endif
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' \
18 <                -e 'T=$10;Ts=$11' -e 'S:1;Tx:0;Ty:0;Tz:0' \
19 <                -e 'Ix:1;Iy:0;Iz:0;Jx:0;Jy:1;Jz:0;Kx:0;Ky:0;Kz:1' \
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' \
16 > rtrace -h- -fad -x 1 -odNplLcn $1 | rcalc -id16 -u \
17 >                -e 'Dx=$1;Dy=$2;Dz=$3;Nx=$4;Ny=$5;Nz=$6;Px=$7;Py=$8;Pz=$9' \
18 >                -e 'T=$10;Ts=$11;Lu=$12;Lv=$13;NxP=$14;NyP=$15;NzP=$16'\
19 >                -e 'S:1;Tx:0;Ty:0;Tz:0:Ix:1;Iy:0;Iz:0;Jx:0;Jy:1;Jz:0;Kx:0;Ky:0;Kz:1' \
20 >                -e 'Rdot=-Dx*Nx-Dy*Ny-Dz*Nz' -e 'RdotP=-Dx*NxP-Dy*NyP-Dz*NzP' \
21 >                -e 'CrP=A1;CgP=A2;CbP=A3' -e 'DxA:0;DyA:0;DzA:0' \
22                  -f rayinit.cal $argv[2-]:q

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines