diff --git a/Kernel_23/include/CGAL/internal/Projection_traits_3.h b/Kernel_23/include/CGAL/internal/Projection_traits_3.h index 0a7ed801656..e5ba5ae0123 100644 --- a/Kernel_23/include/CGAL/internal/Projection_traits_3.h +++ b/Kernel_23/include/CGAL/internal/Projection_traits_3.h @@ -958,6 +958,12 @@ public: return Intersect_2(); } + Construct_point_2 construct_point_2_object() const + { return Construct_point_2();} + + Construct_weighted_point_2 construct_weighted_point_2_object() const + { return Construct_weighted_point_2();} + Construct_segment_2 construct_segment_2_object() const {return Construct_segment_2();} diff --git a/Kernel_23/test/Kernel_23/test_projection_traits.cpp b/Kernel_23/test/Kernel_23/test_projection_traits.cpp index 5e45c679099..97def71ff4c 100644 --- a/Kernel_23/test/Kernel_23/test_projection_traits.cpp +++ b/Kernel_23/test/Kernel_23/test_projection_traits.cpp @@ -34,6 +34,11 @@ int main() assert( k.compute_squared_length_2_object()(v3) == v2.squared_length() ); + assert( p3 == k.construct_point_2_object()(p3) ); + assert( p3 == k.construct_point_2_object()(wp3) ); + assert( wp3 == k.construct_weighted_point_2_object()(p3, 1) ); + assert( wp3 == k.construct_weighted_point_2_object()(wp3) ); + assert( k.compare_power_distance_2_object()(p3, wq3, wr3) == CGAL::compare_power_distance(p2, wq2, wr2) );