23 #ifndef CECH_COMPLEX_BLOCKER_H_ 24 #define CECH_COMPLEX_BLOCKER_H_ 34 namespace cech_complex {
50 template <
typename SimplicialComplexForCech,
typename Cech_complex>
53 using Point_cloud =
typename Cech_complex::Point_cloud;
63 bool operator()(Simplex_handle sh) {
65 for (
auto vertex : sc_ptr_->simplex_vertex_range(sh)) {
66 points.push_back(cc_ptr_->get_point(vertex));
68 std::cout <<
"#(" << vertex <<
")#";
69 #endif // DEBUG_TRACES 73 if (radius > cc_ptr_->max_radius()) std::cout <<
"radius > max_radius => expansion is blocked\n";
74 #endif // DEBUG_TRACES 75 sc_ptr_->assign_filtration(sh, radius);
76 return (radius > cc_ptr_->max_radius());
80 Cech_blocker(SimplicialComplexForCech* sc_ptr,
Cech_complex* cc_ptr) : sc_ptr_(sc_ptr), cc_ptr_(cc_ptr) {}
83 SimplicialComplexForCech* sc_ptr_;
91 #endif // CECH_COMPLEX_BLOCKER_H_ unspecified Filtration_value
Definition: SimplicialComplexForCech.h:39
Definition: SimplicialComplexForAlpha.h:26
Value type for a filtration function on a cell complex.
Definition: FiltrationValue.h:32
Global distance functions.
unspecified Simplex_handle
Definition: SimplicialComplexForCech.h:35
Compute the radius of the minimal enclosing ball between Points given by a range of coordinates...
Definition: distance_functions.h:76
Cech complex data structure.
Definition: Cech_complex.h:56