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.11 by greg, Mon May 16 23:56:32 2011 UTC vs.
Revision 2.13 by greg, Sun Feb 28 00:28:36 2016 UTC

# Line 76 | Line 76 | if ($windoz) {
76                          "-e \"and(a,b):if(a,b,a);sq(x):x*x\" -e \"$vwset\" " .
77                          q{-e "nOK=sq(Vdx*$5+Vdy*$6+Vdz*$7)-.999" } .
78                          " > $td\\origins.txt";
79 <        $rmtmp = "rmdir /S /Q $td";
79 >        $rmtmp = "rd /S /Q $td";
80   } else {
81          $td = mkdtemp("/tmp/genklemsamp.XXXXXX");
82          chomp $td;
# Line 99 | Line 99 | sub GetNOrigins {
99   }
100   # Do we have any Radiance input files?
101   if ($#ARGV >= 0) {
102 <        system "oconv -f @ARGV > $td/surf.oct";
102 >        system "xform -m void @ARGV | oconv - > $td/surf.oct";
103          # Set our own view center and size based on bounding cube
104          $_ = $vwset; s/^.*Vdx://; s/;.*$//;
105          my @vd = $_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines