From 558c52d8cb702cf23fd8aec8d375da3a6d348137 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 30 Jan 2006 08:09:05 +0000 Subject: [PATCH] Corrected Grid --- vcg/complex/trimesh/create/platonic.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/create/platonic.h b/vcg/complex/trimesh/create/platonic.h index a645ff47..0bfa9936 100644 --- a/vcg/complex/trimesh/create/platonic.h +++ b/vcg/complex/trimesh/create/platonic.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2006/01/22 17:10:15 cignoni +Added Grid function (to build range map meshes...) + Revision 1.5 2005/07/11 13:16:34 cignoni small gcc-related compiling issues (typenames,ending cr, initialization order) @@ -628,9 +631,12 @@ void Grid(MeshType & in, int w, int h, float wl, float hl, float *data) Allocator::AddVertices(in,w*h); Allocator::AddFaces(in,(w-1)*(h-1)*2); + float wld=wl/float(w); + float hld=hl/float(h); + for(int i=0;i