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.72 by greg, Fri Oct 14 00:54:22 2016 UTC vs.
Revision 2.74 by greg, Tue Feb 7 19:53:59 2017 UTC

# Line 84 | Line 84 | if ($windoz) {
84          $rmtmp = "rm -rf $td";
85   }
86   my @savedARGV = @ARGV;
87 < my $rfluxmtx = "rfluxmtx -ab 5 -ad 700 -lw 3e-6";
87 > my $rfluxmtx = "rfluxmtx -ab 5 -ad 700 -lw 3e-6 -w-";
88   my $wrapper = "wrapBSDF";
89   my $tensortree = 0;
90   my $ttlog2 = 4;
# Line 170 | Line 170 | if ( !defined $recovery ) {
170          }
171   }
172   if ( $#dim != 5 ) {
173 <        @dim = split ' ', `getbbox -h $radscn`;
173 >        @dim = split ' ', `getbbox -h -w $radscn`;
174   }
175   die "Device entirely inside room!\n" if ( $dim[4] >= 0 );
176   if ( $dim[5] > 1e-5 ) {
# Line 201 | Line 201 | if ( !defined $recovery ) {
201          }
202          close MYAVH;
203          # Generate octree
204 <        system "oconv -w $radscn > $octree";
204 >        system "oconv -w -f $radscn > $octree";
205          die "Could not compile scene\n" if ( $? );
206          # Add MGF description if requested
207          if ( $geout ) {
# Line 249 | Line 249 | if ( !defined $recovery ) {
249          }
250          print STDERR "Recover using: $0 -recover $td\n";
251   }
252 # Open unbuffered progress file
253 open(MYPH, ">> $td/phase.txt");
254 {
255        my $ofh = select MYPH;
256        $| = 1;
257        select $ofh;
258 }
252   $curphase = 0;
253   # Create data segments (all the work happens here)
254   if ( $tensortree ) {
# Line 279 | Line 272 | sub do_phase {
272                  if ( $recovery > $curphase ) { return 0; }
273                  if ( $recovery == $curphase ) { return -1; }
274          }
275 +        open(MYPH, ">> $td/phase.txt");
276          print MYPH "$curphase\n";
277 +        close MYPH;
278          return 1;
279   }
280  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines