From 1c82d5ebb224ab6688b8a53faf0aa2616faaffbe Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sat, 24 Mar 2007 10:33:40 +0000 Subject: [PATCH] Add Less_x_2 and Less_y_2 (new requirements of TriangulationTraits_2 through the integration of spatial_sort()). --- .../include/CGAL/Voronoi_intersection_2_traits_3.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Interpolation/include/CGAL/Voronoi_intersection_2_traits_3.h b/Interpolation/include/CGAL/Voronoi_intersection_2_traits_3.h index 9822ee85f76..c5349106af1 100644 --- a/Interpolation/include/CGAL/Voronoi_intersection_2_traits_3.h +++ b/Interpolation/include/CGAL/Voronoi_intersection_2_traits_3.h @@ -36,6 +36,8 @@ #include #endif +#include + CGAL_BEGIN_NAMESPACE template @@ -279,6 +281,8 @@ public: typedef Compare_first_projection_3 Compare_x_2; typedef Compare_second_projection_3 Compare_y_2; + typedef Compare_to_less Less_x_2; + typedef Compare_to_less Less_y_2; //for certificated coordinate/neighbor computation: typedef typename Rep::Less_distance_to_point_3 Less_distance_to_point_2; @@ -306,6 +310,14 @@ public: compare_y_2_object() const { 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: Compute_area_2 compute_area_2_object() const { return Compute_area_2(); }