Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex Henrie
graph-tool
Commits
c3eaea0e
Commit
c3eaea0e
authored
Feb 02, 2021
by
Alex Henrie
Browse files
Remove workarounds for CGAL < 3.6
parent
2ac08632
Pipeline
#845
passed with stage
in 87 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/generation/graph_triangulation.cc
View file @
c3eaea0e
...
...
@@ -47,8 +47,6 @@ bool operator==(const SimpleTriangulation::Vertex& a,
}
}
// periodic triangulation is only available in more recent versions of CGAL
#if (CGAL_VERSION_NR >= 1030500000)
#include
<CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
#include
<CGAL/Periodic_3_Delaunay_triangulation_3.h>
typedef
CGAL
::
Periodic_3_Delaunay_triangulation_traits_3
<
Kernel
>
GT
;
...
...
@@ -63,7 +61,6 @@ bool operator==(const PeriodicDelaunayTriangulation::Vertex& a,
return
a
.
point
()
==
b
.
point
();
}
}
#endif
// comparison missing in 4.13
#if (CGAL_VERSION_NR >= 1041301000)
...
...
@@ -107,14 +104,8 @@ void triangulation(GraphInterface& gi, boost::python::object points,
}
else
{
#if (CGAL_VERSION_NR >= 1030500000)
get_triangulation
<
PeriodicDelaunayTriangulation
,
std
::
true_type
>
()
(
g
,
points_array
,
pos_map
);
#else
throw
ValueException
(
"Periodic Delaunay triangulation is only "
"available with versions of CGAL newer than "
"3.5.0."
);
#endif
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment