diff options
author | Hind-M <hind.montassif@gmail.com> | 2022-07-01 15:42:29 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2022-07-01 15:42:29 +0200 |
commit | dd41000ec13553787c8575f7aa55ce9156ad6b8a (patch) | |
tree | 7f7d338f41be06da5e39734cfaf70352742bedc4 | |
parent | 70b9a1e3633ce3bc6112488ea6e0342ea910c772 (diff) |
Use dimension to get range size to reserve vector in cech
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 4 |
1 files changed, 1 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 fb452326..e7f548ba 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -14,8 +14,6 @@ #include <CGAL/NT_converter.h> // for casting from FT to Filtration_value #include <CGAL/Lazy_exact_nt.h> // for CGAL::exact -#include <boost/range/size.hpp> - #include <iostream> #include <vector> #include <set> @@ -76,7 +74,7 @@ class Cech_blocker { Filtration_value radius = 0; bool is_min_enclos_ball = false; Point_cloud points; - points.reserve(boost::size(sc_ptr_->simplex_vertex_range(sh))); + points.reserve(sc_ptr_->dimension(sh)+1); // for each face of simplex sh, test outsider point is indeed inside enclosing ball, if yes, take it and exit loop, otherwise, new sphere is circumsphere of all vertices for (auto face_opposite_vertex : sc_ptr_->boundary_opposite_vertex_simplex_range(sh)) { |