diff --git a/vcg/complex/trimesh/create/ball_pivoting.h b/vcg/complex/trimesh/create/ball_pivoting.h index a49a6de1..01a41b9e 100644 --- a/vcg/complex/trimesh/create/ball_pivoting.h +++ b/vcg/complex/trimesh/create/ball_pivoting.h @@ -99,7 +99,7 @@ template class BallPivoting: public AdvancingFront { std::vector targets; std::vector points; std::vector dists; - while(last_seed++ < (int)(this->mesh.vert.size())) { + while(++last_seed < (int)(this->mesh.vert.size())) { VertexType &seed = this->mesh.vert[last_seed]; if(seed.IsD() || seed.IsUserBit(usedBit)) continue;