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

Comparing ray/src/util/fieldcomb.csh (file contents):
Revision 2.3 by greg, Fri Sep 2 14:43:43 2005 UTC vs.
Revision 2.4 by greg, Sat Sep 3 20:44:08 2005 UTC

# Line 47 | Line 47 | endif
47   set curfi=1
48   while ($curfi < $#fields)
49          @ nextfi = $curfi + 1
50 +        if ($curfr < 10) then
51 +                set fid=000$curfr
52 +        else if ($curfr < 100) then
53 +                set fid=00$curfr
54 +        else if ($curfr < 1000) then
55 +                set fid=0$curfr
56 +        else
57 +                set fid=$curfr
58 +        endif
59          pcomb -e 'ro=ri(fld); go=gi(fld); bo=bi(fld)' \
60                  -e 'yd=yres-1-y; odd=.5*yd-floor(.5*yd)-.25' \
61                  -e "fld=if(odd,2-$odd_first,1+$odd_first)" \
62                  $fields[$curfi]:q $fields[$nextfi]:q \
63 <                > "${basenm}C$curfr.$ext"
63 >                > "${basenm}C$fid.$ext"
64          if ($?remove_orig) rm $fields[$curfi]:q $fields[$nextfi]:q
65          @ curfr++
66          @ curfi = $nextfi + 1

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines