mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 03:36: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
|
sub issue
|
||||||
{
|
{
|
||||||
local ($z) = @_;
|
local ($c, $z) = @_;
|
||||||
my $t;
|
my $t;
|
||||||
|
|
||||||
#
|
#
|
||||||
# The order here is a bit arbitrary. We sort to make the outcome
|
# The order here is a bit arbitrary. We sort to make the outcome
|
||||||
# more predictable but it shouldn't really matter.
|
# 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;
|
($t = $z{$c}) =~ s/\s+-?\d+(\.\d*)?$/ $z/mg;
|
||||||
print $t;
|
print $t;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -73,8 +72,8 @@ $z = $z0;
|
|||||||
for $c (sort { $b <=> $a } keys %z) {
|
for $c (sort { $b <=> $a } keys %z) {
|
||||||
while ($z > $c+$zs) {
|
while ($z > $c+$zs) {
|
||||||
$z -= $zs;
|
$z -= $zs;
|
||||||
&issue($z);
|
&issue($c, $z);
|
||||||
}
|
}
|
||||||
$z = $c;
|
$z = $c;
|
||||||
&issue($z);
|
&issue($c, $z);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user