summaryrefslogtreecommitdiff
path: root/src/Cech_complex/include/gudhi/Cech_complex_blocker.h
diff options
context:
space:
mode:
authorHind-M <hind.montassif@gmail.com>2022-04-28 16:38:34 +0200
committerHind-M <hind.montassif@gmail.com>2022-04-28 16:38:34 +0200
commita6a68c11455a554619d8a5b5d2f92c1ddbf45e99 (patch)
treea6759065f19d65b55f83dcc27a08d2bae4aca3cb /src/Cech_complex/include/gudhi/Cech_complex_blocker.h
parenta14d9becec7361a2559fa239c1ca8f2c1b5c5768 (diff)
Put edge sphere in cache
Diffstat (limited to 'src/Cech_complex/include/gudhi/Cech_complex_blocker.h')
-rw-r--r--src/Cech_complex/include/gudhi/Cech_complex_blocker.h4
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