Coverage Control Library
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * This file is part of the CoverageControl library
3 *
4 * Author: Saurav Agarwal
5 * Contact: sauravag@seas.upenn.edu, agr.saurav1@gmail.com
6 * Repository: https://github.com/KumarRobotics/CoverageControl
7 *
8 * Copyright (c) 2024, Saurav Agarwal
9 *
10 * The CoverageControl library is free software: you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or (at your
13 * option) any later version.
14 *
15 * The CoverageControl library is distributed in the hope that it will be
16 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along with
21 * CoverageControl library. If not, see <https://www.gnu.org/licenses/>.
22 */
23
29#ifndef CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CGAL_CONFIG_H_
30#define CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CGAL_CONFIG_H_
31
32// #include <CGAL/basic.h>
33#include <CGAL/Arr_linear_traits_2.h>
34// #include <CGAL/Arr_walk_along_line_point_location.h>
35#include <CGAL/Arrangement_2.h>
36#include <CGAL/Delaunay_triangulation_2.h>
37#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
38#include <CGAL/Partition_traits_2.h>
39#include <CGAL/Polygon_with_holes_2.h>
40#include <CGAL/Random.h>
41#include <CGAL/algorithm.h>
42#include <CGAL/centroid.h>
43#include <CGAL/partition_2.h>
44#include <CGAL/point_generators_2.h>
45#include <CGAL/random_polygon_2.h>
46#include <CGAL/Arr_point_location_result.h>
47#include <CGAL/Arr_batched_point_location.h>
48
49typedef CGAL::Exact_predicates_exact_constructions_kernel K;
50typedef K::Point_2 CGAL_Point2;
51typedef K::Iso_rectangle_2 Iso_rectangle_2;
52typedef K::Segment_2 Segment_2;
53typedef K::Ray_2 Ray_2;
54typedef K::Line_2 Line_2;
55typedef CGAL::Delaunay_triangulation_2<K> Delaunay_triangulation_2;
56
57typedef CGAL::Polygon_2<K> Polygon_2;
58typedef CGAL::Polygon_with_holes_2<K> Polygon_with_holes_2;
59
60typedef CGAL::Arr_linear_traits_2<K> Traits_2;
61typedef CGAL::Arrangement_2<Traits_2> Arrangement_2;
62
63typedef CGAL::Partition_traits_2<K> Partition_traits_2;
64
65typedef CGAL::Creator_uniform_2<double, CGAL_Point2> Creator;
66typedef CGAL::Random_points_in_square_2<CGAL_Point2, Creator> Point_generator;
67
68// typedef CGAL::Arr_walk_along_line_point_location<Arrangement_2> CGAL_pl;
69using CGAL_Point_location_result = CGAL::Arr_point_location_result<Arrangement_2>;
70using CGAL_Query_result = std::pair<CGAL_Point2, CGAL_Point_location_result::Type>;
71
72#endif // CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CGAL_CONFIG_H_
K::Ray_2 Ray_2
Definition config.h:53
CGAL::Random_points_in_square_2< CGAL_Point2, Creator > Point_generator
Definition config.h:66
CGAL::Polygon_with_holes_2< K > Polygon_with_holes_2
Definition config.h:58
CGAL::Creator_uniform_2< double, CGAL_Point2 > Creator
Definition config.h:65
CGAL::Arrangement_2< Traits_2 > Arrangement_2
Definition config.h:61
CGAL::Exact_predicates_exact_constructions_kernel K
Definition config.h:49
CGAL::Arr_point_location_result< Arrangement_2 > CGAL_Point_location_result
Definition config.h:69
CGAL::Polygon_2< K > Polygon_2
Definition config.h:57
K::Segment_2 Segment_2
Definition config.h:52
K::Iso_rectangle_2 Iso_rectangle_2
Definition config.h:51
K::Line_2 Line_2
Definition config.h:54
CGAL::Arr_linear_traits_2< K > Traits_2
Definition config.h:60
std::pair< CGAL_Point2, CGAL_Point_location_result::Type > CGAL_Query_result
Definition config.h:70
CGAL::Delaunay_triangulation_2< K > Delaunay_triangulation_2
Definition config.h:55
CGAL::Partition_traits_2< K > Partition_traits_2
Definition config.h:63
K::Point_2 CGAL_Point2
Definition config.h:50