diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-19 20:29:46 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-19 20:29:46 +0200 |
commit | dc9fc58500cc9f1be70e0d34a24cb634d4fc6c34 (patch) | |
tree | 950dc29ec544600ad94267fd442b10a15826a9e3 /src/Alpha_complex/include | |
parent | 3dd89cf0e7c47b98e150d32ede46e0f4514f5e2b (diff) |
When 3d points are on a 2d plane case - Fixes also default_filtration_value=True in 3d
Diffstat (limited to 'src/Alpha_complex/include')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex_3d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h index c19ebb79..c29905f4 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h @@ -471,6 +471,10 @@ Weighted_alpha_complex_3d::Weighted_point_3 wp0(Weighted_alpha_complex_3d::Bare_ #ifdef DEBUG_TRACES std::clog << "filtration_with_alpha_values returns : " << objects.size() << " objects" << std::endl; #endif // DEBUG_TRACES + if (objects.size() == 0) { + std::cerr << "Alpha_complex_3d create_complex - no triangulation as points are on a 2d plane\n"; + return false; // ----- >> + } using Alpha_value_iterator = typename std::vector<FT>::const_iterator; Alpha_value_iterator alpha_value_iterator = alpha_values.begin(); |