summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/Alpha_complex/include')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h
index 330b3b34..33830175 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h
@@ -230,8 +230,6 @@ class Alpha_complex : public Simplex_tree<> {
}
set_dimension(triangulation_->maximal_dimension());
- // set_filtration to +inf for prune_above_filtration to be done (if necessary)
- set_filtration(std::numeric_limits<Filtration_value>::infinity());
// --------------------------------------------------------------------------------------------
// double map to retrieve simplex tree vertex handles from CGAL vertex iterator and vice versa
@@ -323,7 +321,9 @@ class Alpha_complex : public Simplex_tree<> {
initialize_filtration();
}
// Remove all simplices that have a filtration value greater than max_alpha_square
- prune_above_filtration(max_alpha_square);
+ if (prune_above_filtration(max_alpha_square)) {
+ initialize_filtration();
+ }
// --------------------------------------------------------------------------------------------
}