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.7 by greg, Sun Sep 26 15:40:53 2010 UTC vs.
Revision 2.9 by greg, Mon Apr 11 03:47:46 2011 UTC

# Line 76 | Line 76 | if ($#ARGV >= 0) {
76          push @vd, $_;
77          $_ = $vwset; s/^.*Vdz://; s/;.*$//;
78          push @vd, $_;
79 <        my @bcube = split /\s+/, `getinfo -d < $td/surf.oct`;
79 >        my @bcube = split ' ', `getinfo -d < $td/surf.oct`;
80          $width = $bcube[3]*sqrt(3);
81          $height = $width;
82          push @vopts, ("-vp", $bcube[0]+$bcube[3]/2-$width/2*$vd[0],
# Line 119 | Line 119 | if ($#ARGV >= 0) {
119                          "-e 'cond=($nsamp-outno+1)/($ntot-recno+1)-rand($rn+recno)' " .
120                          "-e 'Kbin=$k;x1=rand($r1+recno);x2=rand($r2+recno)' " .
121                          q{-e '$1=$1+Vo*Vdx; $2=$2+Vo*Vdy; $3=$3+Vo*Vdz' } .
122 <                        q{-e '$4=K0*Vhx-K1*Vvx+K2*Vdx' } .
123 <                        q{-e '$5=K0*Vhy-K1*Vvy+K2*Vdy' } .
124 <                        q{-e '$6=K0*Vhz-K1*Vvz+K2*Vdz' } .
122 >                        q{-e '$4=-K0*Vhx-K1*Vvx+K2*Vdx' } .
123 >                        q{-e '$5=-K0*Vhy-K1*Vvy+K2*Vdy' } .
124 >                        q{-e '$6=-K0*Vhz-K1*Vvz+K2*Vdz' } .
125                          "-if3 $td/origins.flt";
126          }
127   } else {
# Line 143 | Line 143 | if ($#ARGV >= 0) {
143                          q{-e '$1=Vpx+Vo*Vdx+hpos*Vhx+vpos*Vvx' } .
144                          q{-e '$2=Vpy+Vo*Vdy+hpos*Vhy+vpos*Vvy' } .
145                          q{-e '$3=Vpz+Vo*Vdz+hpos*Vhz+vpos*Vvz' } .
146 <                        q{-e '$4=K0*Vhx-K1*Vvx+K2*Vdx' } .
147 <                        q{-e '$5=K0*Vhy-K1*Vvy+K2*Vdy' } .
148 <                        q{-e '$6=K0*Vhz-K1*Vvz+K2*Vdz' } ;
146 >                        q{-e '$4=-K0*Vhx-K1*Vvx+K2*Vdx' } .
147 >                        q{-e '$5=-K0*Vhy-K1*Vvy+K2*Vdy' } .
148 >                        q{-e '$6=-K0*Vhz-K1*Vvz+K2*Vdz' } ;
149          }
150   }
151   system "rm -rf $td";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines