mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 03:02:25 +02:00
cameo/fped2d2z.pl: hack: maintain decimal point across flipping
This commit is contained in:
parent
0fc785d3a1
commit
453f64e4fe
@ -74,7 +74,8 @@ for $z (keys %z) {
|
|||||||
undef $t;
|
undef $t;
|
||||||
for $s (split(/\n/, $z{$z})) {
|
for $s (split(/\n/, $z{$z})) {
|
||||||
if ($s =~ /^(-?[0-9]*\.[0-9]*)\s+(-?[0-9]*\.[0-9]*)/) {
|
if ($s =~ /^(-?[0-9]*\.[0-9]*)\s+(-?[0-9]*\.[0-9]*)/) {
|
||||||
$s = (($xmax+$xmin)/2-$1)." $2" if $flip_y;
|
$s = sprintf("%.6f", ($xmax+$xmin)/2-$1)." $2"
|
||||||
|
if $flip_y;
|
||||||
|
|
||||||
# re-scan, so that we can flip on both axes
|
# re-scan, so that we can flip on both axes
|
||||||
die unless $s =~
|
die unless $s =~
|
||||||
|
Loading…
Reference in New Issue
Block a user