mirror of https://github.com/CGAL/cgal
Merge pull request #7480 from rdengate/appended_data_tag
Add missing AppendedData closing tag, so vtu binary file contains valid xml
This commit is contained in:
commit
08938cf326
|
|
@ -333,7 +333,7 @@ void output_to_vtu_with_attributes(std::ostream& os,
|
|||
os << "<AppendedData encoding=\"raw\">\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<const std::vector<double>* >(attributes[i].second));
|
||||
|
|
@ -345,6 +345,8 @@ void output_to_vtu_with_attributes(std::ostream& os,
|
|||
write_attributes(os, *boost::get<const std::vector<std::size_t>* >(attributes[i].second));
|
||||
break;
|
||||
}
|
||||
}
|
||||
os << "\n</AppendedData>\n";
|
||||
}
|
||||
os << "</VTKFile>\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue