mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-04-21 12:27:27 +03:00
cameo/zstack.pl: use the entire number for (x, y, z0)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user