diff --git a/vcg/complex/algorithms/create/platonic.h b/vcg/complex/algorithms/create/platonic.h index 03fc0a9b..55d8a59a 100644 --- a/vcg/complex/algorithms/create/platonic.h +++ b/vcg/complex/algorithms/create/platonic.h @@ -539,14 +539,14 @@ void Torus(MeshType &m, float hRingRadius, float vRingRadius, int hRingDiv=24, i float angleStepH = (2.0f*M_PI)/hRingDiv; Allocator::AddVertices(m,(vRingDiv+1)*(hRingDiv+1)); - for(float i=0;i::RemoveDuplicateVertex(m); + tri::Allocator::CompactVertexVector(m); + } // this function build a mesh starting from a vector of generic coords (objects having a triple of float at their beginning)