summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi/Alpha_complex.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-03-23 08:09:39 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-03-23 08:09:39 +0000
commitbbf22c32a893c9875f6ea0e217d0bf6cf77c3257 (patch)
treeb1a546fd5c2cc35d28d5af2c1611b4979be36469 /src/Alpha_complex/include/gudhi/Alpha_complex.h
parent5276b0a9e344ed0bb4fdb8b079f2ce86649d12a4 (diff)
prune_above_filtration returns filtration vector modification information instead of calling initialize_filtration()
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@1071 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 6fdc1797ac6e7b452abe150643f0ec9578c3bbab
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex.h')
-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();
+ }
// --------------------------------------------------------------------------------------------
}