From 94f3ed0fa9bb2faad9f89b8d0d11ff919208b3f1 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Fri, 30 Sep 2005 13:12:46 +0000 Subject: [PATCH] basic grid class is derived from Indexing base class defined in base,h --- vcg/space/index/grid_util.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/vcg/space/index/grid_util.h b/vcg/space/index/grid_util.h index 551dcd7d..44f0dd6d 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.5 2005/09/16 11:56:38 cignoni +removed wrong typename and added ending \n + Revision 1.4 2005/08/02 11:01:05 pietroni added IPToP and IBoxToBox functions, modified BoxToIBox function in order to use PToIP function @@ -41,6 +44,9 @@ Removed BestDim function from the grid_static_ptr class and moved to a indipende #ifndef __VCGLIB_GRID_UTIL #define __VCGLIB_GRID_UTIL +#include +#include +#include namespace vcg { @@ -48,10 +54,15 @@ namespace vcg { // contiene tutte le funzioni solite per le conversioni tra point3f e point3i - template - class BasicGrid { + template + class BasicGrid:public SpatialIndex { - typedef Box3 Box3x; + typedef typename Box3 Box3x; + typedef typename SCALARTYPE ScalarType; + typedef typename Point3 CoordType; + typedef typename OBJTYPE ObjType; + typedef typename OBJTYPE* ObjPtr; + typedef typename BasicGrid GridType; public: Box3x bbox;