Skip to content

Commit

Permalink
Fix PLY output bug (empty line in header is deadly apparently)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoledoux committed Mar 6, 2024
1 parent 2a1a2e2 commit dc45529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc45529

Please sign in to comment.