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`.
This commit is contained in:
Laurent Rineau 2019-01-21 16:17:28 +01:00
parent dbd569d51c
commit 8f658695f8
2 changed files with 12 additions and 12 deletions

View File

@ -206,11 +206,11 @@ write_cells_2(std::ostream& os,
// writes the points tags before binary data is appended
template <class Tr>
void
write_points_tag(std::ostream& os,
const Tr & tr,
std::map<typename Tr::Vertex_handle, std::size_t> & V,
bool binary,
std::size_t& offset)
write_cdt_points_tag(std::ostream& os,
const Tr & tr,
std::map<typename Tr::Vertex_handle, std::size_t> & 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 << " </Piece>\n"
<< " </UnstructuredGrid>\n";

View File

@ -150,11 +150,11 @@ write_cells(std::ostream& os,
template <class Tr>
void
write_points_tag(std::ostream& os,
const Tr & tr,
std::map<typename Tr::Vertex_handle, std::size_t> & V,
bool binary,
std::size_t& offset)
write_c3t3_points_tag(std::ostream& os,
const Tr & tr,
std::map<typename Tr::Vertex_handle, std::size_t> & 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<float> mids;
os << " <CellData Domain=\"MeshDomain";