From c524232f734de875d69e2f190f01a6c976024368 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Thu, 14 Jun 2018 20:39:01 +0200 Subject: GUDHI 2.2.0 as released by upstream in a tarball. --- .../CGAL/NewKernel_d/Kernel_3_interface.h | 102 --------------------- 1 file changed, 102 deletions(-) delete mode 100644 include/gudhi_patches/CGAL/NewKernel_d/Kernel_3_interface.h (limited to 'include/gudhi_patches/CGAL/NewKernel_d/Kernel_3_interface.h') diff --git a/include/gudhi_patches/CGAL/NewKernel_d/Kernel_3_interface.h b/include/gudhi_patches/CGAL/NewKernel_d/Kernel_3_interface.h deleted file mode 100644 index 96076aa8..00000000 --- a/include/gudhi_patches/CGAL/NewKernel_d/Kernel_3_interface.h +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2014 -// INRIA Saclay-Ile de France (France) -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; either version 3 of the License, -// or (at your option) any later version. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// Author(s) : Marc Glisse - -#ifndef CGAL_KD_KERNEL_3_INTERFACE_H -#define CGAL_KD_KERNEL_3_INTERFACE_H - -#include -#include -#include -#include - - -namespace CGAL { -template struct Kernel_3_interface : public Base_ { - typedef Base_ Base; - typedef Kernel_3_interface Kernel; - typedef typename Get_type::type RT; - typedef typename Get_type::type FT; - typedef typename Get_type::type Boolean; - typedef typename Get_type::type Sign; - typedef typename Get_type::type Comparison_result; - typedef typename Get_type::type Orientation; - typedef typename Get_type::type Oriented_side; - typedef typename Get_type::type Bounded_side; - typedef typename Get_type::type Angle; - typedef typename Get_type::type Point_3; - typedef typename Get_type::type Vector_3; - typedef typename Get_type::type Segment_3; - typedef cpp0x::tuple Triangle_3; // placeholder - typedef cpp0x::tuple Tetrahedron_3; // placeholder - struct Compare_xyz_3 { - typedef typename Get_functor::type CL; - typedef typename CL::result_type result_type; - CL cl; - Compare_xyz_3(Kernel const&k):cl(k){} - result_type operator()(Point_3 const&a, Point_3 const&b) { - return cl(a,b); - } - }; - struct Compare_distance_3 { - typedef typename Get_functor::type CD; - typedef typename CD::result_type result_type; - CD cd; - Compare_distance_3(Kernel const&k):cd(k){} - result_type operator()(Point_3 const&a, Point_3 const&b, Point_3 const&c) { - return cd(a,b,c); - } - result_type operator()(Point_3 const&a, Point_3 const&b, Point_3 const&c, Point_3 const&d) { - return cd(a,b,c,d); - } - }; - struct Orientation_3 { - typedef typename Get_functor::type O; - typedef typename O::result_type result_type; - O o; - Orientation_3(Kernel const&k):o(k){} - result_type operator()(Point_3 const&a, Point_3 const&b, Point_3 const&c, Point_3 const&d) { - //return o(a,b,c,d); - Point_3 const* t[4]={&a,&b,&c,&d}; - return o(make_transforming_iterator(t+0),make_transforming_iterator(t+4)); - - } - }; - struct Side_of_oriented_sphere_3 { - typedef typename Get_functor::type SOS; - typedef typename SOS::result_type result_type; - SOS sos; - Side_of_oriented_sphere_3(Kernel const&k):sos(k){} - result_type operator()(Point_3 const&a, Point_3 const&b, Point_3 const&c, Point_3 const&d, Point_3 const&e) { - //return sos(a,b,c,d); - Point_3 const* t[5]={&a,&b,&c,&d,&e}; - return sos(make_transforming_iterator(t+0),make_transforming_iterator(t+5)); - } - }; - - // I don't have the Coplanar predicates (yet) - - - Compare_xyz_3 compare_xyz_3_object()const{ return Compare_xyz_3(*this); } - Compare_distance_3 compare_distance_3_object()const{ return Compare_distance_3(*this); } - Orientation_3 orientation_3_object()const{ return Orientation_3(*this); } - Side_of_oriented_sphere_3 side_of_oriented_sphere_3_object()const{ return Side_of_oriented_sphere_3(*this); } -}; -} - -#endif -- cgit v1.2.3