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.6 by greg, Thu Nov 5 06:30:57 2009 UTC vs.
Revision 2.7 by greg, Sun Sep 26 15:40:53 2010 UTC

# Line 82 | Line 82 | if ($#ARGV >= 0) {
82          push @vopts, ("-vp", $bcube[0]+$bcube[3]/2-$width/2*$vd[0],
83                          $bcube[1]+$bcube[3]/2-$width/2*$vd[1],
84                          $bcube[2]+$bcube[3]/2-$width/2*$vd[2]);
85 <        push @vopts, ("-vh", $width, "-vh", $height);
85 >        push @vopts, ("-vh", $width, "-vv", $height);
86          $vwset = `vwright @vopts V`;
87          $sca = sqrt($nsamp/($width*$height));
88          my $xres;
# Line 99 | Line 99 | if ($#ARGV >= 0) {
99                                  q{-e 'nOK=sq(Vdx*$5+Vdy*$6+Vdz*$7)-.999' } .
100                                  "-if7 -of > $td/origins.flt";
101                  $ntot = -s "$td/origins.flt";
102 <                $ntot /= 3*4;
102 >                $ntot /= 3*4;           # number of bytes per sample position
103                  if ($ntot == 0) {
104                          if ($nsamp < 200) {
105                                  $sca = sqrt(200/($width*$height));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines