From 2a4aa1fbe40c2398e7cf008c360a3dcecad0c804 Mon Sep 17 00:00:00 2001
From: Tiago de Paula Peixoto <tiago@skewed.de>
Date: Wed, 21 Sep 2016 11:26:51 +0200
Subject: [PATCH] Fix compilation problem with newer CGAL
---
src/graph/generation/graph_triangulation.cc | 16 +++++++++-------
src/graph/generation/graph_triangulation.hh | 8 ++++----
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/graph/generation/graph_triangulation.cc b/src/graph/generation/graph_triangulation.cc
index 5642785..f63509a 100644
a
|
b
|
|
15 | 15 | // You should have received a copy of the GNU General Public License |
16 | 16 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | |
18 | | // As a special exception, you have permission to link this program |
19 | | // with the CGAL library and distribute executables, as long as you |
20 | | // follow the requirements of the GNU GPL in regard to all of the |
21 | | // software in the executable aside from CGAL. |
| 18 | // As a special exception, you have permission to link this program |
| 19 | // with the CGAL library and distribute executables, as long as you |
| 20 | // follow the requirements of the GNU GPL in regard to all of the |
| 21 | // software in the executable aside from CGAL. |
22 | 22 | |
23 | 23 | #include "graph.hh" |
24 | 24 | #include "graph_util.hh" |
… |
… |
bool operator==(const SimpleTriangulation::Vertex& a, |
52 | 52 | |
53 | 53 | // periodic triangulation is only available in more recent versions of CGAL |
54 | 54 | #if (CGAL_VERSION_NR >= 1030500000) |
55 | | #include <CGAL/Periodic_3_triangulation_traits_3.h> |
| 55 | #include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h> |
56 | 56 | #include <CGAL/Periodic_3_Delaunay_triangulation_3.h> |
57 | | typedef CGAL::Periodic_3_triangulation_traits_3<Kernel> GT; |
| 57 | typedef CGAL::Periodic_3_Delaunay_triangulation_traits_3<Kernel> GT; |
58 | 58 | typedef CGAL::Periodic_3_Delaunay_triangulation_3<GT> |
59 | 59 | PeriodicDelaunayTriangulation; |
| 60 | |
60 | 61 | namespace CGAL |
61 | 62 | { |
62 | 63 | bool operator==(const PeriodicDelaunayTriangulation::Vertex& a, |
… |
… |
void triangulation(GraphInterface& gi, boost::python::object points, |
85 | 86 | |
86 | 87 | if (type == "simple") |
87 | 88 | { |
88 | | get_triangulation<SimpleTriangulation, std::false_type>()(g, points_array, pos_map); |
| 89 | get_triangulation<SimpleTriangulation, std::false_type>() |
| 90 | (g, points_array, pos_map); |
89 | 91 | } |
90 | 92 | else if (type == "delaunay") |
91 | 93 | { |
diff --git a/src/graph/generation/graph_triangulation.hh b/src/graph/generation/graph_triangulation.hh
index fffebe1..441bce5 100644
a
|
b
|
|
15 | 15 | // You should have received a copy of the GNU General Public License |
16 | 16 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | |
18 | | // As a special exception, you have permission to link this program |
19 | | // with the CGAL library and distribute executables, as long as you |
20 | | // follow the requirements of the GNU GPL in regard to all of the |
21 | | // software in the executable aside from CGAL. |
| 18 | // As a special exception, you have permission to link this program |
| 19 | // with the CGAL library and distribute executables, as long as you |
| 20 | // follow the requirements of the GNU GPL in regard to all of the |
| 21 | // software in the executable aside from CGAL. |
22 | 22 | |
23 | 23 | #ifndef GRAPH_TRIANGULATION_HH |
24 | 24 | #define GRAPH_TRIANGULATION_HH |