mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:16:27 +02:00
cameo/zstack.pl: don't output lower layers at higher Z
We leave this to the designer :-)
This commit is contained in:
parent
340fb2cf8b
commit
079608ba6c
@ -22,17 +22,16 @@ sub usage
|
||||
|
||||
sub issue
|
||||
{
|
||||
local ($z) = @_;
|
||||
local ($c, $z) = @_;
|
||||
my $t;
|
||||
|
||||
#
|
||||
# The order here is a bit arbitrary. We sort to make the outcome
|
||||
# more predictable but it shouldn't really matter.
|
||||
#
|
||||
for my $c (sort { $b <=> $a } grep { $_ <= $z } keys %z) {
|
||||
($t = $z{$c}) =~ s/\s+-?\d+(\.\d*)?$/ $z/mg;
|
||||
print $t;
|
||||
}
|
||||
|
||||
($t = $z{$c}) =~ s/\s+-?\d+(\.\d*)?$/ $z/mg;
|
||||
print $t;
|
||||
}
|
||||
|
||||
|
||||
@ -73,8 +72,8 @@ $z = $z0;
|
||||
for $c (sort { $b <=> $a } keys %z) {
|
||||
while ($z > $c+$zs) {
|
||||
$z -= $zs;
|
||||
&issue($z);
|
||||
&issue($c, $z);
|
||||
}
|
||||
$z = $c;
|
||||
&issue($z);
|
||||
&issue($c, $z);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user