updated the spatial indexing class to the new basicgrid class that has only one template parameter

This commit is contained in:
Paolo Cignoni 2008-07-01 09:33:47 +00:00
parent 4e227776f3
commit fa2c3fa060
2 changed files with 4 additions and 4 deletions

View File

@ -199,7 +199,7 @@ namespace vcg {
*/
template < class OBJTYPE, class FLT=float >
class GridStaticPtr: public BasicGrid<OBJTYPE,FLT>
class GridStaticPtr: public BasicGrid<FLT>, SpatialIndex<OBJTYPE,FLT>
{
public:
typedef OBJTYPE ObjType;
@ -209,7 +209,7 @@ namespace vcg {
typedef Box3<ScalarType> Box3x;
typedef Line3<ScalarType> Line3x;
typedef GridStaticPtr<OBJTYPE,FLT> GridPtrType;
typedef BasicGrid<OBJTYPE,FLT> BT;
typedef BasicGrid<FLT> BT;
/** Internal class for keeping the first pointer of object.
Definizione Link dentro la griglia. Classe di supporto per GridStaticObj.

View File

@ -136,7 +136,7 @@ namespace vcg{
Matthias Teschner and Bruno Heidelberger and Matthias Muller and Danat Pomeranets and Markus Gross
*/
template < typename OBJTYPE,class FLT=double>
class SpatialHashTable:public BasicGrid<OBJTYPE,FLT>
class SpatialHashTable:public BasicGrid<FLT>, SpatialIndex<OBJTYPE,FLT>
{
public:
@ -145,7 +145,7 @@ namespace vcg{
typedef ObjType* ObjPtr;
typedef typename ObjType::ScalarType ScalarType;
typedef Point3<ScalarType> CoordType;
typedef typename BasicGrid<OBJTYPE, FLT>::Box3x Box3x;
typedef typename BasicGrid<FLT>::Box3x Box3x;
// typedef typename SpatialHashTable<ObjType,FLT> SpatialHashType;
typedef SpatialHashTable SpatialHashType;