From cad00372142f453167bcd9c8c3285532be2b7e16 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 24 Sep 2004 10:14:38 +0000 Subject: [PATCH] Corrected bug in cone --- vcg/complex/trimesh/platonic.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/vcg/complex/trimesh/platonic.h b/vcg/complex/trimesh/platonic.h index 45c114c3..d8d0e612 100644 --- a/vcg/complex/trimesh/platonic.h +++ b/vcg/complex/trimesh/platonic.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2004/09/22 15:12:38 fiorin +Corrected bug in hexahedron + Revision 1.7 2004/07/09 15:34:29 tarini Dodecahedron added! (and doxigened a little bit) @@ -391,7 +394,7 @@ void Cone( MeshType& in, Allocator::AddVertices(in,VN); Allocator::AddFaces(in,FN); - VertexPointer ivp[VN]; + VertexPointer *ivp = new VertexPointer[VN]; VertexIterator vi=in.vert.begin(); ivp[0]=&*vi;(*vi).P()=CoordType ( 0,-h/2,0 ); ++vi; @@ -442,8 +445,8 @@ void Cone( MeshType& in, if(r2!=0) for(i=0;i