Move code to internal folder/namespace

This commit is contained in:
Andreas Fabri 2023-10-06 14:15:02 +01:00
parent 4f9dd85aaa
commit 55c564558f
3 changed files with 12 additions and 4 deletions

View File

@ -20,8 +20,8 @@
#include <CGAL/Multipolygon_with_holes_2.h>
#include <CGAL/Constrained_Delaunay_triangulation_2.h>
#include <CGAL/Polygon_repair/Triangulation_face_base_with_repair_info_2.h>
#include <CGAL/Polygon_repair/Triangulation_with_odd_even_constraints_2.h>
#include <CGAL/Polygon_repair/internal/Triangulation_face_base_with_repair_info_2.h>
#include <CGAL/Polygon_repair/internal/Triangulation_with_odd_even_constraints_2.h>
namespace CGAL {
@ -276,13 +276,13 @@ class Polygon_repair {
public:
using Vertex_base = CGAL::Triangulation_vertex_base_2<Kernel>;
using Face_base = CGAL::Constrained_triangulation_face_base_2<Kernel>;
using Face_base_with_repair_info = CGAL::Triangulation_face_base_with_repair_info_2<Kernel, Face_base>;
using Face_base_with_repair_info = internal::Triangulation_face_base_with_repair_info_2<Kernel, Face_base>;
using Triangulation_data_structure = CGAL::Triangulation_data_structure_2<Vertex_base, Face_base_with_repair_info>;
using Tag = typename std::conditional<std::is_floating_point<typename Kernel::FT>::value,
CGAL::Exact_predicates_tag,
CGAL::Exact_intersections_tag>::type;
using Constrained_Delaunay_triangulation = CGAL::Constrained_Delaunay_triangulation_2<Kernel, Triangulation_data_structure, Tag>;
using Triangulation = Triangulation_with_odd_even_constraints_2<Constrained_Delaunay_triangulation>;
using Triangulation = internal::Triangulation_with_odd_even_constraints_2<Constrained_Delaunay_triangulation>;
// TODO: Edge_map and Vertex_map use std::set and set::map with exact kernels since Point_2 can't be hashed otherwise
using Edge_map = typename std::conditional<std::is_floating_point<typename Kernel::FT>::value,
std::unordered_set<std::pair<typename Kernel::Point_2, typename Kernel::Point_2>,

View File

@ -17,6 +17,8 @@
#include <CGAL/Triangulation_face_base_2.h>
namespace CGAL {
namespace Polygon_repair {
namespace internal {
template <typename Kernel, typename FaceBase = Triangulation_face_base_2<Kernel>>
class Triangulation_face_base_with_repair_info_2 : public FaceBase {
@ -47,6 +49,8 @@ public:
int& label() { return _label; }
};
} // namespace internal
} // namespace Polygon_repair
} //namespace CGAL
#endif // CGAL_TRIANGULATION_WITH_REPAIR_INFO_2_H

View File

@ -16,6 +16,8 @@
#include <CGAL/iterator.h>
namespace CGAL {
namespace Polygon_repair {
namespace internal {
template <class Triangulation_>
class Triangulation_with_odd_even_constraints_2 : public Triangulation_ {
@ -122,6 +124,8 @@ public:
}
};
} // namespace internal
} // namespace Polygon_repair
} // namespace CGAL
#endif // CGAL_TRIANGULATION_WITH_ODD_EVEN_CONSTRAINTS_2_H