summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-19 10:28:37 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-19 10:28:37 +0000
commit73e025369bd50511b67b4f8e290a2c3a533ded88 (patch)
tree33d5da29722ec766e523048db8e36fe2add27004 /src/Alpha_complex/include/gudhi
parentf443bbd06cac275284f75936d6803105eb99fec6 (diff)
make_filtration_non_decreasing fix
Ut rewrite git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@974 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 3326338b9454923b59d3e42add0f3530c6dbe16f
Diffstat (limited to 'src/Alpha_complex/include/gudhi')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h
index 9f931066..1ab6766c 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h
@@ -308,7 +308,9 @@ class Alpha_complex : public Simplex_tree<> {
// --------------------------------------------------------------------------------------------
// As Alpha value is an approximation, we have to make filtration non decreasing while increasing the dimension
- make_filtration_non_decreasing();
+ if (make_filtration_non_decreasing()) {
+ initialize_filtration();
+ }
// Remove all simplices that have a filtration value greater than max_alpha_square
prune_above_filtration(max_alpha_square);
// --------------------------------------------------------------------------------------------