mirror of https://github.com/CGAL/cgal
Add Less_x_2 and Less_y_2 (new requirements of TriangulationTraits_2 through
the integration of spatial_sort()).
This commit is contained in:
parent
b6af521e78
commit
1c82d5ebb2
|
|
@ -36,6 +36,8 @@
|
||||||
#include <CGAL/constructions/constructions_for_voronoi_intersection_cartesian_2_3.h>
|
#include <CGAL/constructions/constructions_for_voronoi_intersection_cartesian_2_3.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <CGAL/function_objects.h>
|
||||||
|
|
||||||
CGAL_BEGIN_NAMESPACE
|
CGAL_BEGIN_NAMESPACE
|
||||||
|
|
||||||
template <class Traits>
|
template <class Traits>
|
||||||
|
|
@ -279,6 +281,8 @@ public:
|
||||||
typedef Compare_first_projection_3<Rep> Compare_x_2;
|
typedef Compare_first_projection_3<Rep> Compare_x_2;
|
||||||
typedef Compare_second_projection_3<Rep> Compare_y_2;
|
typedef Compare_second_projection_3<Rep> Compare_y_2;
|
||||||
|
|
||||||
|
typedef Compare_to_less<Compare_x_2> Less_x_2;
|
||||||
|
typedef Compare_to_less<Compare_y_2> Less_y_2;
|
||||||
|
|
||||||
//for certificated coordinate/neighbor computation:
|
//for certificated coordinate/neighbor computation:
|
||||||
typedef typename Rep::Less_distance_to_point_3 Less_distance_to_point_2;
|
typedef typename Rep::Less_distance_to_point_3 Less_distance_to_point_2;
|
||||||
|
|
@ -306,6 +310,14 @@ public:
|
||||||
compare_y_2_object() const
|
compare_y_2_object() const
|
||||||
{ return Compare_y_2(normal); }
|
{ return Compare_y_2(normal); }
|
||||||
|
|
||||||
|
Less_x_2
|
||||||
|
less_x_2_object() const
|
||||||
|
{ return compare_to_less(compare_x_2_object());; }
|
||||||
|
|
||||||
|
Less_y_2
|
||||||
|
less_y_2_object() const
|
||||||
|
{ return compare_to_less(compare_y_2_object());; }
|
||||||
|
|
||||||
//for the coordinate computation:
|
//for the coordinate computation:
|
||||||
Compute_area_2 compute_area_2_object() const
|
Compute_area_2 compute_area_2_object() const
|
||||||
{ return Compute_area_2(); }
|
{ return Compute_area_2(); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue