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.25 by greg, Wed Aug 24 04:14:58 2011 UTC vs.
Revision 2.26 by greg, Tue Oct 25 20:51:10 2011 UTC

# Line 149 | Line 149 | print
149   </WindowElement>
150   ';
151   # Clean up temporary files and exit
152 if ( $persistfile && open(PFI, "< $persistfile") ) {
153        while (<PFI>) {
154                s/^[^ ]* //;
155                kill('ALRM', $_);
156                last;
157        }
158        close PFI;
159 }
152   exec("rm -rf $td");
153  
154   #-------------- End of main program segment --------------#
155  
156 + #++++++++++++++ Kill persistent rtrace +++++++++++++++++++#
157 + sub persist_end {
158 +        if ( $persistfile && open(PFI, "< $persistfile") ) {
159 +                while (<PFI>) {
160 +                        s/^[^ ]* //;
161 +                        kill('ALRM', $_);
162 +                        last;
163 +                }
164 +                close PFI;
165 +        }
166 + }
167 +
168   #++++++++++++++ Tensor tree BSDF generation ++++++++++++++#
169   sub do_tree_bsdf {
170   # Get sampling rate and subdivide task
# Line 236 | Line 240 | if ( $doback ) {
240                  die "rtcontrib process reported error" if ( $? );
241                  $npleft++;
242          }
243 +        persist_end();
244          ttree_out(0);
245   }
246   if ( $doforw ) {
# Line 252 | Line 257 | if ( $doforw ) {
257                  die "rtcontrib process reported error" if ( $? );
258                  $npleft++;
259          }
260 +        persist_end();
261          ttree_out(1);
262   }
263   }       # end of sub do_tree_bsdf()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines