summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-10-05 14:50:57 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-10-05 14:50:57 +0200
commitd6ca67fee4f9c2a97b64710a5b70ed66dd307372 (patch)
treecb8aafd114e15cee7ff5d67c21ab42da97eaf47b
parent2d80f0e7f3e09167760338c15596b052050ddb55 (diff)
code review: fix include what you use and compute_squared_radius_smallest_orthogonal_sphere_d_object use
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
index d4dbd68b..fbb931d4 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
@@ -12,10 +12,8 @@
#define ALPHA_COMPLEX_ALPHA_KERNEL_D_H_
#include <CGAL/version.h> // for CGAL_VERSION_NR
-#include <CGAL/Epeck_d.h> // For EXACT or SAFE version
-#include <CGAL/Epick_d.h> // For FAST version
-#include <Eigen/src/Core/util/Macros.h> // for EIGEN_VERSION_AT_LEAST
+#include <Eigen/Core> // for EIGEN_VERSION_AT_LEAST
#include <utility> // for std::make_pair
@@ -117,7 +115,7 @@ class Alpha_kernel_d<Kernel, true> {
template<class PointIterator>
FT get_squared_radius(PointIterator begin, PointIterator end) const {
- return get_sphere(begin, end).weight();
+ return kernel_.compute_squared_radius_smallest_orthogonal_sphere_d_object()(begin, end);
}
FT get_squared_radius(const Sphere& sph) const {