diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-21 08:40:25 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-21 08:40:25 +0200 |
commit | 0b27bb3fe7e6d876a9db60223ab7d4b61c15c3f5 (patch) | |
tree | 794799ae3e5f75a7b6029a3c44a905ac57a50691 /src/python/include/Alpha_complex_interface.h | |
parent | dc9fc58500cc9f1be70e0d34a24cb634d4fc6c34 (diff) |
Add tests for 3d points on a plane
Diffstat (limited to 'src/python/include/Alpha_complex_interface.h')
-rw-r--r-- | src/python/include/Alpha_complex_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/include/Alpha_complex_interface.h b/src/python/include/Alpha_complex_interface.h index 604ff85e..38533a08 100644 --- a/src/python/include/Alpha_complex_interface.h +++ b/src/python/include/Alpha_complex_interface.h @@ -49,8 +49,9 @@ class Alpha_complex_interface { else alpha_ptr_ = std::make_unique<Alphacomplex_3D<Gudhi::alpha_complex::complexity::SAFE>>(points_); if (!alpha_ptr_->create_simplex_tree(simplex_tree, max_alpha_square, default_filtration_value)) { - // create_simplex_tree will fail if all points are on a 2d plane - Retry with dimension 2 + // create_simplex_tree will fail if all points are on a plane - Retry with dD by setting dimension to 2 dimension--; + alpha_ptr_.reset(); } } // Not ** else ** because we have to take into account if 3d fails |