From e62da4e2bb84d9588e367b16c31d83cf59dfd138 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 1 Nov 2013 21:15:43 -0300 Subject: [PATCH] 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. --- cameo/fped2stl.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cameo/fped2stl.pl b/cameo/fped2stl.pl index 109b50c..79940b9 100755 --- a/cameo/fped2stl.pl +++ b/cameo/fped2stl.pl @@ -51,8 +51,7 @@ print STDERR "$name $z ...\n"; while () { 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;