diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-11 11:55:55 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-11 11:55:55 +0200 |
commit | 171ddab9b7a50f0303d7201fa547dbfb445f9698 (patch) | |
tree | e8464dd61a45c9c6a84b929e3eb00692f186d6b2 /src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h | |
parent | 9922407fe6f5d8872522157555c3573e95930ac3 (diff) |
Requires CGAL >= 5.1. Fix is_gabriel computation
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h | 17 |
1 files changed, 4 insertions, 13 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 a3e3845a..b64e4f59 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 @@ -71,13 +71,8 @@ class Alpha_kernel_d<Kernel, false> { return sph.second; } - auto get_circumcenter(const Sphere& sph) const { - return sph.first; - } - - template<class Point> - FT get_squared_distance(const Point& first, const Point& second) const { - return kernel_.squared_distance_d_object()(first, second); + bool is_gabriel(const Sphere& circumcenter, const Point_d& point) { + return kernel_.squared_distance_d_object()(circumcenter.first, point) >= circumcenter.second; } }; @@ -116,12 +111,8 @@ class Alpha_kernel_d<Kernel, true> { return sph.weight(); } - auto get_circumcenter(const Sphere& sph) const { - return sph; - } - - FT get_squared_distance(const Weighted_point_d& first, const Weighted_point_d& second) const { - return kernel_.power_distance_d_object()(first, second); + bool is_gabriel(const Sphere& circumcenter, const Weighted_point_d& point) { + return kernel_.power_distance_d_object()(circumcenter, point) >= 0; } }; |