Rename two write_points functions as well

This commit is contained in:
Laurent Rineau 2019-01-21 16:32:37 +01:00
parent 8f658695f8
commit c7b95e25c5
2 changed files with 10 additions and 10 deletions

View File

@ -252,10 +252,10 @@ write_cdt_points_tag(std::ostream& os,
// writes the points appended data at the end of the .vtu file // writes the points appended data at the end of the .vtu file
template <class Tr> template <class Tr>
void void
write_points(std::ostream& os, write_cdt_points(std::ostream& os,
const Tr & tr, const Tr & tr,
std::map<typename Tr::Vertex_handle, std::map<typename Tr::Vertex_handle,
std::size_t> & V) std::size_t> & V)
{ {
std::size_t dim = 2; std::size_t dim = 2;
typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator; typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator;
@ -319,7 +319,7 @@ void write_vtu(std::ostream& os,
<< " </UnstructuredGrid>\n"; << " </UnstructuredGrid>\n";
if (binary) { if (binary) {
os << "<AppendedData encoding=\"raw\">\n_"; os << "<AppendedData encoding=\"raw\">\n_";
write_points(os,tr,V); // write points before cells to fill the std::map V write_cdt_points(os,tr,V); // write points before cells to fill the std::map V
write_cells_2(os,tr, number_of_triangles, V); write_cells_2(os,tr, number_of_triangles, V);
} }
os << "</VTKFile>\n"; os << "</VTKFile>\n";

View File

@ -196,10 +196,10 @@ write_c3t3_points_tag(std::ostream& os,
// writes the points appended data at the end of the .vtu file // writes the points appended data at the end of the .vtu file
template <class Tr> template <class Tr>
void void
write_points(std::ostream& os, write_c3t3_points(std::ostream& os,
const Tr & tr, const Tr & tr,
std::map<typename Tr::Vertex_handle, std::map<typename Tr::Vertex_handle,
std::size_t> & V) std::size_t> & V)
{ {
std::size_t dim = 3; std::size_t dim = 3;
typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator; typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator;
@ -299,7 +299,7 @@ void output_to_vtu(std::ostream& os,
<< " </UnstructuredGrid>\n"; << " </UnstructuredGrid>\n";
if (binary) { if (binary) {
os << "<AppendedData encoding=\"raw\">\n_"; os << "<AppendedData encoding=\"raw\">\n_";
write_points(os,tr,V); // write points before cells to fill the std::map V write_c3t3_points(os,tr,V); // write points before cells to fill the std::map V
write_cells(os,c3t3,V, mids);//todo mids should be filled by write_attribute_tag write_cells(os,c3t3,V, mids);//todo mids should be filled by write_attribute_tag
write_attributes(os,mids); write_attributes(os,mids);
} }