summaryrefslogtreecommitdiff
path: root/src/Cech_complex/include/gudhi/Cech_complex_blocker.h
diff options
context:
space:
mode:
authorHind-M <hind.montassif@gmail.com>2022-08-04 15:43:12 +0200
committerHind-M <hind.montassif@gmail.com>2022-08-04 15:43:12 +0200
commitcfdde35b30bdb49319b2806588de0e487aec654e (patch)
tree225b0b543ba5700495488fc8b0a9051197ae4982 /src/Cech_complex/include/gudhi/Cech_complex_blocker.h
parent5f984492c11047f39f24f8797a5fe1d047020cf9 (diff)
Use exact option when computing edges filtrations as well in cech
Diffstat (limited to 'src/Cech_complex/include/gudhi/Cech_complex_blocker.h')
-rw-r--r--src/Cech_complex/include/gudhi/Cech_complex_blocker.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h
index e7f548ba..961da1fd 100644
--- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h
+++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h
@@ -104,7 +104,7 @@ class Cech_blocker {
#endif // DEBUG_TRACES
is_min_enclos_ball = true;
#if CGAL_VERSION_NR >= 1050000000
- if(exact_) CGAL::exact(sph.second);
+ if(cc_ptr_->is_exact()) CGAL::exact(sph.second);
#endif
radius = std::sqrt(cast_to_fv(sph.second));
sc_ptr_->assign_key(sh, cc_ptr_->get_cache().size());
@@ -119,7 +119,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
radius = std::sqrt(cast_to_fv(sph.second));
@@ -135,13 +135,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