From e40b78b1afc6ff9e0cfa8856e96a1b1a3a9605d3 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 2 Oct 2005 23:15:26 +0000 Subject: [PATCH] Inveted the boolean sign of an assert in Grid() --- vcg/space/index/grid_static_ptr.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/grid_static_ptr.h b/vcg/space/index/grid_static_ptr.h index cdfb9402..8ba65e22 100644 --- a/vcg/space/index/grid_static_ptr.h +++ b/vcg/space/index/grid_static_ptr.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.27 2005/09/30 15:07:28 cignoni +Reordered grid access functions +Added possibility of setting BBox explicitly in Set(...) + Revision 1.26 2005/09/30 13:15:21 pietroni added wrapping to functions defined in GridClosest: - GetClosest @@ -270,7 +274,7 @@ namespace vcg { /// BY INTEGER COORDS inline Cell* Grid( const int x, const int y, const int z ) { - assert(( x<0 || x>=siz[0] || y<0 || y>=siz[1] || z<0 || z>=siz[2] )); + assert(!( x<0 || x>=siz[0] || y<0 || y>=siz[1] || z<0 || z>=siz[2] )); assert(grid.size()>0); return &*grid.begin() + ( x+siz[0]*(y+siz[1]*z) ); }