From 00cc5e3f152ffcc2483cf0a2af6c7700fc1572f5 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Thu, 8 Mar 2007 17:05:50 +0000 Subject: [PATCH] line 375, corrected 1 error concerning intersection with bounding of the grid --- vcg/space/index/space_iterators.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/space_iterators.h b/vcg/space/index/space_iterators.h index 7dc37a15..6c9ef0f7 100644 --- a/vcg/space/index/space_iterators.h +++ b/vcg/space/index/space_iterators.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.24 2007/02/20 16:22:50 ganovelli +modif in ClosestIterator to include the last shell Si.siz [X|Y|X]. Tested with minialign and point based animation + Revision 1.23 2006/12/06 12:53:14 pietroni changed 1 wrong comment RayIterator---- Refresh .. was the opposite @@ -369,7 +372,7 @@ namespace vcg{ _UpdateRadius(); Box3 b3d(p,radius); Si.BoxToIBox(b3d,to_explore); - Box3i ibox(Point3i(0,0,0),Si.siz); + Box3i ibox(Point3i(0,0,0),Si.siz-Point3i(1,1,1)); to_explore.Intersect(ibox); if (!to_explore.IsNull()) {