Fix bug: badly initialized class_index (lead to duplicate indices)

This commit is contained in:
Simon Giraudot 2017-10-03 08:49:41 +02:00
parent cd085f8880
commit 5232df1ead
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ shape. The implementation follows \cgalCite{cgal:lm-clscm-12}.
if (m_shape_index[i] != -1)
continue;
m_shape_index[i] = class_index++;
m_shape_index[i] = ++ class_index;
int conti = 0; //for accelerate least_square fitting