diff options
author | Hind-M <hind.montassif@gmail.com> | 2022-08-02 12:04:08 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2022-08-02 12:04:08 +0200 |
commit | 2a4f60b822b15c34058220beffd311f46f11d3b3 (patch) | |
tree | aab24a872338ae7502edc081b79f0b3fc9d91222 /src/Cech_complex | |
parent | 2559b78a16cc0f7af9ea3b78d6b388c629b2a4ae (diff) |
Get filtration from face when it's the same as simplex
Diffstat (limited to 'src/Cech_complex')
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h index 22b99c5c..6f082494 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -106,7 +106,10 @@ class Cech_blocker { #if CGAL_VERSION_NR >= 1050000000 if(exact_) CGAL::exact(sph.second); #endif - radius = std::sqrt(cast_to_fv(sph.second)); + if(k != sc_ptr_->null_key()) + radius = sc_ptr_->filtration(face_opposite_vertex.first); + else + radius = std::sqrt(cast_to_fv(sph.second)); #ifdef DEBUG_TRACES std::clog << "center: " << sph.first << ", radius: " << radius << std::endl; #endif // DEBUG_TRACES |