From dc455293d3034b4c2c787a7ac83633032fd54f3c Mon Sep 17 00:00:00 2001 From: Hugo Ledoux Date: Wed, 6 Mar 2024 08:13:29 +0100 Subject: [PATCH] Fix PLY output bug (empty line in header is deadly apparently) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8e8ca11..f996f47 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -1588,7 +1588,7 @@ impl Triangulation { writeln!(f, "property float x").unwrap(); writeln!(f, "property float y").unwrap(); writeln!(f, "property float z").unwrap(); - writeln!(f, "element face {}\n", trs.len()).unwrap(); + writeln!(f, "element face {}", trs.len()).unwrap(); writeln!(f, "property list uchar int vertex_indices").unwrap(); writeln!(f, "end_header").unwrap(); //-- find one good vertice to replace the deleted one