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

Comparing ray/src/util/genklemsamp.pl (file contents):
Revision 2.4 by greg, Fri Jun 19 06:49:42 2009 UTC vs.
Revision 2.5 by greg, Fri Jun 19 18:42:06 2009 UTC

# Line 63 | Line 63 | Kpol = DEGREE * (x1*Kpola(Krow) + (1-x1)*Kpola(Krow-1)
63   sin_kpol = sin(Kpol);
64   K0 = cos(Kazi)*sin_kpol;
65   K1 = sin(Kazi)*sin_kpol;
66 < K2 = cos(Kpol);
66 > K2 = sqrt(1 - sin_kpol*sin_kpol);
67   ';
68   my $ndiv = 145;
69   # Do we have any Radiance input files?
# Line 118 | Line 118 | if ($#ARGV >= 0) {
118                          "-e 'cond=($nsamp-outno+1)/($ntot-recno+1)-rand($rn+recno)' " .
119                          "-e 'Kbin=$k;x1=rand($r1+recno);x2=rand($r2+recno)' " .
120                          q{-e '$1=$1+Vo*Vdx; $2=$2+Vo*Vdy; $3=$3+Vo*Vdz' } .
121 <                        q{-e '$4=K0*Vhx+K1*Vvx+K2*Vdx' } .
122 <                        q{-e '$5=K0*Vhy+K1*Vvy+K2*Vdy' } .
123 <                        q{-e '$6=K0*Vhz+K1*Vvz+K2*Vdz' } .
121 >                        q{-e '$4=K0*Vhx-K1*Vvx+K2*Vdx' } .
122 >                        q{-e '$5=K0*Vhy-K1*Vvy+K2*Vdy' } .
123 >                        q{-e '$6=K0*Vhz-K1*Vvz+K2*Vdz' } .
124                          "-if3 $td/origins.flt";
125          }
126   } else {
# Line 142 | Line 142 | if ($#ARGV >= 0) {
142                          q{-e '$1=Vpx+Vo*Vdx+hpos*Vhx+vpos*Vvx' } .
143                          q{-e '$2=Vpy+Vo*Vdy+hpos*Vhy+vpos*Vvy' } .
144                          q{-e '$3=Vpz+Vo*Vdz+hpos*Vhz+vpos*Vvz' } .
145 <                        q{-e '$4=K0*Vhx+K1*Vvx+K2*Vdx' } .
146 <                        q{-e '$5=K0*Vhy+K1*Vvy+K2*Vdy' } .
147 <                        q{-e '$6=K0*Vhz+K1*Vvz+K2*Vdz' } ;
145 >                        q{-e '$4=K0*Vhx-K1*Vvx+K2*Vdx' } .
146 >                        q{-e '$5=K0*Vhy-K1*Vvy+K2*Vdy' } .
147 >                        q{-e '$6=K0*Vhz-K1*Vvz+K2*Vdz' } ;
148          }
149   }
150   system "rm -rf $td";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines