From 8f658695f81de2f0afb13c2679b0561c713904f6 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 21 Jan 2019 16:17:28 +0100 Subject: [PATCH] Rename internal methods to avoid a namespace class There was two methods named `CGAL::write_points_tag`. I renamed then to: - `write_c3t3_points_tag`, and - `write_cdt_points_tag`. --- Mesh_2/include/CGAL/IO/write_vtu.h | 12 ++++++------ Mesh_3/include/CGAL/IO/output_to_vtu.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Mesh_2/include/CGAL/IO/write_vtu.h b/Mesh_2/include/CGAL/IO/write_vtu.h index e2a5b71b911..4af962fba72 100644 --- a/Mesh_2/include/CGAL/IO/write_vtu.h +++ b/Mesh_2/include/CGAL/IO/write_vtu.h @@ -206,11 +206,11 @@ write_cells_2(std::ostream& os, // writes the points tags before binary data is appended template void -write_points_tag(std::ostream& os, - const Tr & tr, - std::map & V, - bool binary, - std::size_t& offset) +write_cdt_points_tag(std::ostream& os, + const Tr & tr, + std::map & V, + bool binary, + std::size_t& offset) { std::size_t dim = 2; typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator; @@ -313,7 +313,7 @@ void write_vtu(std::ostream& os, << "\" NumberOfCells=\"" << number_of_triangles + std::distance(tr.constrained_edges_begin(), tr.constrained_edges_end()) << "\">\n"; std::size_t offset = 0; const bool binary = (mode == IO::BINARY); - write_points_tag(os,tr,V,binary,offset); + write_cdt_points_tag(os,tr,V,binary,offset); write_cells_tag_2(os,tr,number_of_triangles, V,binary,offset); os << " \n" << " \n"; diff --git a/Mesh_3/include/CGAL/IO/output_to_vtu.h b/Mesh_3/include/CGAL/IO/output_to_vtu.h index 7e802343cfe..369a0d45a47 100644 --- a/Mesh_3/include/CGAL/IO/output_to_vtu.h +++ b/Mesh_3/include/CGAL/IO/output_to_vtu.h @@ -150,11 +150,11 @@ write_cells(std::ostream& os, template void -write_points_tag(std::ostream& os, - const Tr & tr, - std::map & V, - bool binary, - std::size_t& offset) +write_c3t3_points_tag(std::ostream& os, + const Tr & tr, + std::map & V, + bool binary, + std::size_t& offset) { std::size_t dim = 3; typedef typename Tr::Finite_vertices_iterator Finite_vertices_iterator; @@ -288,7 +288,7 @@ void output_to_vtu(std::ostream& os, << "\" NumberOfCells=\"" << c3t3.number_of_cells() << "\">\n"; std::size_t offset = 0; const bool binary = (mode == IO::BINARY); - write_points_tag(os,tr,V,binary,offset); + write_c3t3_points_tag(os,tr,V,binary,offset); write_cells_tag(os,c3t3,V,binary,offset); std::vector mids; os << "