File indexing completed on 2025-09-15 08:57:35
0001 #include "fastjet/config.h"
0002 #ifndef DROP_CGAL
0003 #ifndef __FASTJET_TRIANGULATION__
0004 #define __FASTJET_TRIANGULATION__
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
0039 #include <CGAL/Delaunay_triangulation_2.h>
0040 #include <CGAL/Triangulation_hierarchy_2.h>
0041 #include <CGAL/Triangulation_vertex_base_with_info_2.h>
0042 #include "fastjet/internal/base.hh"
0043
0044 FASTJET_BEGIN_NAMESPACE
0045
0046
0047
0048
0049
0050
0051
0052 #ifdef CGAL_SIMPLE_KERNEL
0053 struct K : CGAL::Simple_cartesian<double> {};
0054 #else
0055 struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
0056 #endif
0057
0058
0059 const int INFINITE_VERTEX=-1;
0060 const int NEW_VERTEX=-2;
0061 const double HUGE_DOUBLE=1e300;
0062
0063
0064
0065
0066
0067
0068 class InitialisedInt {
0069 private:
0070 int _val;
0071 public:
0072 inline InitialisedInt () {_val=NEW_VERTEX;};
0073 inline InitialisedInt& operator= (int value) {_val = value; return *this;};
0074 inline int val() const {return _val;};
0075 };
0076
0077
0078
0079
0080
0081
0082
0083
0084 #ifdef NOHIERARCHY
0085 typedef CGAL::Triangulation_vertex_base_with_info_2<InitialisedInt,K> Vb;
0086 typedef CGAL::Triangulation_face_base_2<K> Fb;
0087 typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
0088 typedef CGAL::Delaunay_triangulation_2<K,Tds> Triangulation;
0089 #else
0090 typedef CGAL::Triangulation_vertex_base_with_info_2<InitialisedInt,K> Vbb;
0091 typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
0092 typedef CGAL::Triangulation_face_base_2<K> Fb;
0093 typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
0094 typedef CGAL::Delaunay_triangulation_2<K,Tds> Dt;
0095 typedef CGAL::Triangulation_hierarchy_2<Dt> Triangulation;
0096 #endif
0097
0098 typedef Triangulation::Vertex_handle Vertex_handle;
0099 typedef Triangulation::Point Point;
0100 typedef Triangulation::Vertex_circulator Vertex_circulator;
0101 typedef Triangulation::Face_circulator Face_circulator;
0102 typedef Triangulation::Face_handle Face_handle;
0103
0104
0105
0106 FASTJET_END_NAMESPACE
0107
0108 #endif
0109 #endif