From 036aeae1c921f4d6dbc00e6864bcf79e791cd131 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 15 Oct 2012 12:49:17 +0000 Subject: [PATCH] corrected a bug in torus creation --- vcg/complex/algorithms/create/platonic.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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)