From fb9f59d3a906de372c4ef30772fa5bc2223bb942 Mon Sep 17 00:00:00 2001 From: Rebecca Dengate Date: Tue, 30 May 2023 16:35:10 +1000 Subject: [PATCH] Adds missing AppendedData closing tag, so vtu binary file contains valid xml. --- SMDS_3/include/CGAL/IO/output_to_vtu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SMDS_3/include/CGAL/IO/output_to_vtu.h b/SMDS_3/include/CGAL/IO/output_to_vtu.h index e78f1b680a2..28818b8ba68 100644 --- a/SMDS_3/include/CGAL/IO/output_to_vtu.h +++ b/SMDS_3/include/CGAL/IO/output_to_vtu.h @@ -333,7 +333,7 @@ void output_to_vtu_with_attributes(std::ostream& os, os << "\n_"; write_c3t3_points(os,tr,V); // fills V if the mode is BINARY write_cells(os,c3t3,V); - for(std::size_t i = 0; i< attributes.size(); ++i) + for(std::size_t i = 0; i< attributes.size(); ++i) { switch(attributes[i].second.which()){ case 0: write_attributes(os, *boost::get* >(attributes[i].second)); @@ -345,6 +345,8 @@ void output_to_vtu_with_attributes(std::ostream& os, write_attributes(os, *boost::get* >(attributes[i].second)); break; } + } + os << "\n\n"; } os << "\n"; }