diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-08-10 11:27:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 11:27:08 +0200 |
commit | 99a29efd4f3bf27d181c26acb822cc30a18aca0e (patch) | |
tree | 9bfbf48dd5992164970bdab6c8eb61e885d3c31b /src/Cech_complex/include/gudhi/Cech_complex_blocker.h | |
parent | a5978f81faf2aeaa3b3df682caf791aae50fd948 (diff) | |
parent | 93b4fc9db0feb92e14e176c7ee5b6bbe8cf5a832 (diff) |
Merge pull request #667 from Hind-M/cech_exact
[Cech] Use exact option when computing edges filtrations
Diffstat (limited to 'src/Cech_complex/include/gudhi/Cech_complex_blocker.h')
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h index 3ea82826..e78e37b7 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -116,7 +116,7 @@ class Cech_blocker { } Sphere sph = get_sphere(points.cbegin(), points.cend()); #if CGAL_VERSION_NR >= 1050000000 - if(exact_) CGAL::exact(sph.second); + if(cc_ptr_->is_exact()) CGAL::exact(sph.second); #endif CGAL::NT_converter<FT, Filtration_value> cast_to_fv; radius = std::sqrt(cast_to_fv(sph.second)); @@ -134,13 +134,12 @@ class Cech_blocker { } /** \internal \brief Čech complex blocker constructor. */ - Cech_blocker(SimplicialComplexForCech* sc_ptr, Cech_complex* cc_ptr, const bool exact) : sc_ptr_(sc_ptr), cc_ptr_(cc_ptr), exact_(exact) {} + Cech_blocker(SimplicialComplexForCech* sc_ptr, Cech_complex* cc_ptr) : sc_ptr_(sc_ptr), cc_ptr_(cc_ptr) {} private: SimplicialComplexForCech* sc_ptr_; Cech_complex* cc_ptr_; Kernel kernel_; - const bool exact_; }; } // namespace cech_complex |