CDT++
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
Triangulation_traits.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 Causal Dynamical Triangulations in C++ using CGAL
3
4 Copyright © 2021 Adam Getchell
5 ******************************************************************************/
6
10
11#ifndef CDT_PLUSPLUS_TRIANGULATION_TRAITS_HPP
12#define CDT_PLUSPLUS_TRIANGULATION_TRAITS_HPP
13
14#include <CGAL/Delaunay_triangulation_3.h>
15#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
16#include <CGAL/point_generators_3.h>
17#include <CGAL/Triangulation_cell_base_with_info_3.h>
18#include <CGAL/Triangulation_vertex_base_with_info_3.h>
19
20#include "Settings.hpp"
21
22template <int dimension>
24
25template <>
27{
28 using Kernel = CGAL::Exact_predicates_inexact_constructions_kernel;
29 using Vertex_base =
30 CGAL::Triangulation_vertex_base_with_info_3<Int_precision, Kernel>;
31 using Cell_base =
32 CGAL::Triangulation_cell_base_with_info_3<Int_precision, Kernel>;
33#ifdef CGAL_LINKED_WITH_TBB
34 using Tds = CGAL::Triangulation_data_structure_3<Vertex_base, Cell_base,
35 CGAL::Parallel_tag>;
36#else
37 using Tds = CGAL::Triangulation_data_structure_3<Vertex_base, Cell_base>;
38#endif
39 using Delaunay = CGAL::Delaunay_triangulation_3<Kernel, Tds>;
40
41 using Cell_handle = Delaunay::Cell_handle;
42 using Face_handle = std::pair<Cell_handle, Int_precision>;
43 using Facet = Delaunay::Facet;
44 using Edge_handle = CGAL::Triple<Cell_handle, Int_precision, Int_precision>;
45 using Vertex_handle = Delaunay::Vertex_handle;
46 using Point = Delaunay::Point;
47 using Causal_vertices = std::vector<std::pair<Point, Int_precision>>;
48
53 using squared_distance = Kernel::Compute_squared_distance_3;
54
55 using Spherical_points_generator = CGAL::Random_points_on_sphere_3<Point>;
56
57 static inline Point const ORIGIN_POINT = Point{0, 0, 0};
58}; // TriangulationTraits<3>
59
60#endif // CDT_PLUSPLUS_TRIANGULATION_TRAITS_HPP
Global integer and precision settings.
Kernel::Compute_squared_distance_3 squared_distance
CGAL::squared_distance See https://doc.cgal.org/latest/Kernel_23/group__squared__distance__grp....