| 34 |
|
# Boolean whether coatings can have partial coverage: |
| 35 |
|
set part_arr=(0 0 0 1 1) |
| 36 |
|
|
| 37 |
+ |
set gfiles=() |
| 38 |
|
while ($#argv > 0) |
| 39 |
|
set header="Surface Tr Tg Tb Rcr Rcg Rcb Rgr Rgg Rgb Part" |
| 40 |
|
if ($#argv < 2 || "$argv[1]" != '-f') then |
| 44 |
|
shift argv |
| 45 |
|
set gf="$argv[1]" |
| 46 |
|
shift argv |
| 47 |
+ |
set gfiles=($gfiles:q $gf:q) |
| 48 |
|
if ("`sed -n 1p $gf:q`" != "$header") then |
| 49 |
|
echo "Bad header in $gf -- Expected: $header" |
| 50 |
|
exit 1 |
| 73 |
|
@ i++ |
| 74 |
|
end |
| 75 |
|
end |
| 76 |
+ |
if (! $#gfiles) unset gfiles |
| 77 |
|
|
| 78 |
|
################################################################# |
| 79 |
|
# |
| 157 |
|
echo "" |
| 158 |
|
echo "############################################" |
| 159 |
|
echo "# Glazing produced by Radiance glaze script" |
| 160 |
< |
echo "# `date`" |
| 160 |
> |
echo '# $Revision$ $Date$' |
| 161 |
> |
if ($?gfiles) then |
| 162 |
> |
echo "# Loaded: $gfiles:q" |
| 163 |
> |
echo "# `date`" |
| 164 |
> |
endif |
| 165 |
|
echo "# Material surface normal points to interior" |
| 166 |
|
echo "# Number of panes in system: $np" |
| 167 |
|
|