mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 04:23:55 +02:00
cameo/zstack.pl: use the entire number for (x, y, z0)
This commit is contained in:
parent
d64a34045f
commit
ff5b4a1ae8
@ -54,10 +54,10 @@ while (<>) {
|
|||||||
$z{$z} .= "$s\n";
|
$z{$z} .= "$s\n";
|
||||||
undef $s;
|
undef $s;
|
||||||
}
|
}
|
||||||
if (/^-?\d+(\.\d*)?\s+-?\d+(\.\d*)?\s+(-?\d+(\.\d*)?)/) {
|
if (/^(-?\d+(\.\d*)?)\s+(-?\d+(\.\d*)?)\s+(-?\d+(\.\d*)?)/) {
|
||||||
$x = $1 unless defined $x;
|
$x = $1 unless defined $x;
|
||||||
$y = $2 unless defined $y;
|
$y = $3 unless defined $y;
|
||||||
$z = $3;
|
$z = $5;
|
||||||
}
|
}
|
||||||
$s .= $_;
|
$s .= $_;
|
||||||
$zmax = $z if $z > $zmax || !defined $zmax;
|
$zmax = $z if $z > $zmax || !defined $zmax;
|
||||||
|
Loading…
Reference in New Issue
Block a user