From 0e13472efb546ef2b65ab6cacfbadfb3c740bbec Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 5 Dec 2008 22:55:36 +0000 Subject: [PATCH] corrected a wrong assert in grid creation function --- vcg/complex/trimesh/create/platonic.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/create/platonic.h b/vcg/complex/trimesh/create/platonic.h index 18569d18..af20aca5 100644 --- a/vcg/complex/trimesh/create/platonic.h +++ b/vcg/complex/trimesh/create/platonic.h @@ -598,7 +598,6 @@ void Build( MeshType & in, const V & v, const F & f) typename V::const_iterator vi; typename MeshType::VertexType tv; -// tv.Supervisor_Flags()=0; for(int i=0;i void FaceGrid(MeshType & in, int w, int h) { - assert(in.vn == in.vert.size()); // require a compact vertex vector - assert(in.vn <= w*h); // the number of vertices should be large enough + assert(in.vn == (int)in.vert.size()); // require a compact vertex vector + assert(in.vn >= w*h); // the number of vertices should match the number of expected grid vertices Allocator::AddFaces(in,(w-1)*(h-1)*2);