summaryrefslogtreecommitdiff
path: root/src/python/include
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2019-12-20 16:05:59 +0100
committerGitHub <noreply@github.com>2019-12-20 16:05:59 +0100
commitda96206b1fa6fe536d77e9b5906f10d26a37b243 (patch)
tree3461c2f629bdce9c77dfeef684967ddec053b5e9 /src/python/include
parent2842ab896b21e4577198216e814084cfd88d989c (diff)
parent490a5774601e344bb732de5eab2a8cf6d5a7e81f (diff)
Merge pull request #169 from VincentRouvreau/exact_alpha_complex_python_version
Fix #107 - Exact alpha complex python version
Diffstat (limited to 'src/python/include')
-rw-r--r--src/python/include/Alpha_complex_interface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/include/Alpha_complex_interface.h b/src/python/include/Alpha_complex_interface.h
index 96353cc4..e9bbadb0 100644
--- a/src/python/include/Alpha_complex_interface.h
+++ b/src/python/include/Alpha_complex_interface.h
@@ -13,6 +13,7 @@
#include <gudhi/Simplex_tree.h>
#include <gudhi/Alpha_complex.h>
+#include <CGAL/Epeck_d.h>
#include <CGAL/Epick_d.h>
#include <boost/range/adaptor/transformed.hpp>
@@ -28,7 +29,7 @@ namespace Gudhi {
namespace alpha_complex {
class Alpha_complex_interface {
- using Dynamic_kernel = CGAL::Epick_d< CGAL::Dynamic_dimension_tag >;
+ using Dynamic_kernel = CGAL::Epeck_d< CGAL::Dynamic_dimension_tag >;
using Point_d = Dynamic_kernel::Point_d;
public:
@@ -51,7 +52,7 @@ class Alpha_complex_interface {
std::vector<double> vd;
try {
Point_d const& ph = alpha_complex_->get_point(vh);
- for (auto coord = ph.cartesian_begin(); coord < ph.cartesian_end(); coord++)
+ for (auto coord = ph.cartesian_begin(); coord != ph.cartesian_end(); coord++)
vd.push_back(CGAL::to_double(*coord));
} catch (std::out_of_range const&) {
// std::out_of_range is thrown in case not found. Other exceptions must be re-thrown