1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-22 23:26:27 +02:00

cae-tools/cameo/fped2stl.pl (flush): substitute coordinates only once

If a layer was at exactly z = 1 mm, we would set it to $z1 (after temporarily
setting it to $z) even in cases where it should be at $z.
This commit is contained in:
Werner Almesberger 2013-11-01 21:15:43 -03:00
parent 96063ccff9
commit e62da4e2bb

View File

@ -51,8 +51,7 @@ print STDERR "$name $z ...\n";
while (<RR>) {
s/cameo/$name/;
s/(vertex.*)0\.0*e\+00$/$1$z/;
s/(vertex.*)1\.0*e\+00$/$1$z1/;
s/(vertex.*)0\.0*e\+00$/$1$z/ || s/(vertex.*)1\.0*e\+00$/$1$z1/;
print;
}
close RR;