Deal with dimension != 2 (#8767)

Fixes for #8748
This commit is contained in:
Sebastien Loriot 2025-03-07 17:12:14 +01:00 committed by GitHub
commit 4f2f518e6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1442,7 +1442,7 @@ Alpha_shape_2<Dt,EACT>::find_alpha_solid() const
// takes O(#alpha_shape) time
Type_of_alpha alpha_solid = 0;
if (number_of_vertices()<3) return alpha_solid;
if (dimension()!=2) return alpha_solid;
Finite_vertices_iterator vertex_it;
// only finite vertices