diff options
author | Hind-M <hind.montassif@gmail.com> | 2022-04-28 16:38:34 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2022-04-28 16:38:34 +0200 |
commit | a6a68c11455a554619d8a5b5d2f92c1ddbf45e99 (patch) | |
tree | a6759065f19d65b55f83dcc27a08d2bae4aca3cb | |
parent | a14d9becec7361a2559fa239c1ca8f2c1b5c5768 (diff) |
Put edge sphere in cache
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h index fb12946a..3141d27a 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -99,6 +99,10 @@ class Cech_blocker { #endif // DEBUG_TRACES } sph = get_sphere(face_points.cbegin(), face_points.cend()); + // Put edge sphere in cache + sc_ptr_->assign_key(face, cc_ptr_->get_cache().size()); + cc_ptr_->get_cache().push_back(sph); + // Clear face_points face_points.clear(); } // Check if the minimal enclosing ball of current face contains the extra point |