check should be on the dimension not the number of points

This commit is contained in:
Sébastien Loriot 2025-03-03 16:27:24 +01:00
parent 138b06ca11
commit 1b189f40fd
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