diff --git a/vcg/complex/algorithms/clean.h b/vcg/complex/algorithms/clean.h index 2f1aee67..cd2632f4 100644 --- a/vcg/complex/algorithms/clean.h +++ b/vcg/complex/algorithms/clean.h @@ -457,6 +457,7 @@ public: { tri::RequireCompactness(m); tri::UpdateFlags::VertexClearV(m); + int count_split = 0; for(size_t i=0;iIsS()) { if(!vp->IsV()) + { m.edge[i].V(j) = &*(tri::Allocator::AddVertex(m,vp->P())); - else vp->SetV(); + ++count_split; + } + else + { + vp->SetV(); + } + } } } + return count_split; }