From 0b27bb3fe7e6d876a9db60223ab7d4b61c15c3f5 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Sun, 21 Jun 2020 08:40:25 +0200 Subject: Add tests for 3d points on a plane --- src/python/include/Alpha_complex_interface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/include') 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>(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 -- cgit v1.2.3