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

Comparing ray/src/util/genBSDF.pl (file contents):
Revision 2.5 by greg, Thu Dec 9 17:00:43 2010 UTC vs.
Revision 2.7 by greg, Thu Jan 27 22:28:12 2011 UTC

# Line 54 | Line 54 | if ( $mgfin ) {
54          system "rad2mgf $radscn > $mgfscn" if ( $geout );
55   }
56   if ($#dim != 5) {
57 <        @dim = split /\s+/, `getbbox -h $radscn`;
58 <        shift @dim;
57 >        @dim = split ' ', `getbbox -h $radscn`;
58   }
59   print STDERR "Warning: Device extends into room\n" if ($dim[5] > 1e-5);
60   # Add receiver surface (rectangle)
# Line 132 | Line 131 | my $cmd = "cnt $ndiv $ny $nx | rcalc -of -e '$tcal' "
131          "| rtcontrib -h -ff -n $nproc -c $nsamp -e '$kcal' -b kbin -bn $ndiv " .
132          "-m $modnm -w -ab 5 -ad 700 -lw 3e-6 $octree " .
133          "| rcalc -e '$tcal' " .
134 <        "-e 'mod(n,d):n-floor(n/d)*d' -e 'Kbin=mod(recno-1,$ndiv)' " .
134 >        "-e 'mod(n,d):n-floor(n/d)*d' -e 'Kbin=mod(recno-.999,$ndiv)' " .
135          q{-if3 -e '$1=(0.265*$1+0.670*$2+0.065*$3)/KprojOmega'};
136   my @darr = `$cmd`;
137   die "Failure running: $cmd\n" if ( $? );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines