28 |
|
'-aa .2 -ar 64 -ad 512 -as 128 -lr 7 -lw 1e-03'); |
29 |
|
my @vwraysA = ('vwrays', '-ff', '-pj', '.67'); |
30 |
|
my @vwrightA = ('vwright', '-vtv'); |
31 |
< |
my @rpictA = ('rpict'); |
31 |
> |
my @rpictA = ('rpict', '-ps', '1'); |
32 |
|
my $outpatt = '^-o[vrxlLRXnNsmM]+'; |
33 |
|
my $refDepth = ""; |
34 |
|
my $irrad = 0; |
35 |
+ |
my $persist = 0; |
36 |
|
my $outlyr; |
37 |
|
my $outdir; |
38 |
|
my $outpic; |
76 |
|
} |
77 |
|
# Check rtrace options |
78 |
|
if (defined $rtraceC{$ARGV[0]}) { |
79 |
+ |
$persist ||= ("$ARGV[0]" =~ /^-PP?$/); |
80 |
|
push @rtraceA, $ARGV[0]; |
81 |
|
push @rpictA, shift(@ARGV); |
82 |
|
for (my $i = $rtraceC{$rpictA[-1]}; $i-- > 0; ) { |
126 |
|
} |
127 |
|
##################################################################### |
128 |
|
##### May as well run rpict? |
129 |
< |
if ($nprocs == 1 && !defined($outdir)) { |
129 |
> |
if ($nprocs == 1 && $persist == 0 && !defined($outdir)) { |
130 |
|
push(@rpictA, $ARGV[0]) if ($#ARGV == 0); |
131 |
|
exec @rpictA ; |
132 |
|
} |