From 010877c2b8d0ee26c8d80d88c72327333e413b82 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 2 Oct 2005 23:16:26 +0000 Subject: [PATCH] English comment and moved typedef to public scope --- vcg/space/index/grid_util.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/vcg/space/index/grid_util.h b/vcg/space/index/grid_util.h index 44f0dd6d..63bd3921 100644 --- a/vcg/space/index/grid_util.h +++ b/vcg/space/index/grid_util.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/09/30 13:12:46 pietroni +basic grid class is derived from Indexing base class defined in base,h + Revision 1.5 2005/09/16 11:56:38 cignoni removed wrong typename and added ending \n @@ -50,13 +53,20 @@ Removed BestDim function from the grid_static_ptr class and moved to a indipende namespace vcg { - // classe di base per tutte le strutture dati di indexing spaziale basate su griglia. - // contiene tutte le funzioni solite per le conversioni tra point3f e point3i + // Basic Class abstracting a gridded structure in a 3d space; + // Usueful for having coherent float to integer conversion in a unique place: + // Some Notes: + // - bbox is the real occupation of the box in the space; + // - siz is the number of cells for each side + // Note that PToIP(bbox.max) returns an invalid cell index (e.g. it returns siz) + template class BasicGrid:public SpatialIndex { + public: + typedef typename Box3 Box3x; typedef typename SCALARTYPE ScalarType; typedef typename Point3 CoordType; @@ -64,7 +74,6 @@ namespace vcg { typedef typename OBJTYPE* ObjPtr; typedef typename BasicGrid GridType; - public: Box3x bbox; /// Dimensione spaziale (lunghezza lati) del bbox Point3 dim;