--- ray/src/util/genBSDF.pl 2010/12/15 17:23:58 2.6 +++ ray/src/util/genBSDF.pl 2011/01/29 16:44:01 2.8 @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# RCSid $Id: genBSDF.pl,v 2.6 2010/12/15 17:23:58 greg Exp $ +# RCSid $Id: genBSDF.pl,v 2.8 2011/01/29 16:44:01 greg Exp $ # # Compute BSDF based on geometry and material description # @@ -31,7 +31,7 @@ while ($#ARGV >= 0) { shift @ARGV; } elsif ("$ARGV[0]" =~ /^-d/) { userror() if ($#ARGV < 6); - @dim = "@ARGV[1..6]"; + @dim = @ARGV[1..6]; shift @ARGV for (1..6); } elsif ("$ARGV[0]" =~ /^[-+]./) { userror(); @@ -54,8 +54,7 @@ if ( $mgfin ) { system "rad2mgf $radscn > $mgfscn" if ( $geout ); } if ($#dim != 5) { - @dim = split /\s+/, `getbbox -h $radscn`; - shift @dim; + @dim = split ' ', `getbbox -h $radscn`; } print STDERR "Warning: Device extends into room\n" if ($dim[5] > 1e-5); # Add receiver surface (rectangle)