mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:26:27 +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";
|
||||
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;
|
||||
$y = $2 unless defined $y;
|
||||
$z = $3;
|
||||
$y = $3 unless defined $y;
|
||||
$z = $5;
|
||||
}
|
||||
$s .= $_;
|
||||
$zmax = $z if $z > $zmax || !defined $zmax;
|
||||
|
Loading…
Reference in New Issue
Block a user