mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 04:23:55 +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:
parent
96063ccff9
commit
e62da4e2bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user