From d3d85dd0c0f10730755b9a7d2e15ec055443869c Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 18 Oct 2012 08:44:11 +0000 Subject: [PATCH] corrected small bug in the gridclosest scanning function that caused rescan of the inner box when the search region in the uniform grid was growing. --- vcg/space/index/grid_closest.h | 1 + 1 file changed, 1 insertion(+) diff --git a/vcg/space/index/grid_closest.h b/vcg/space/index/grid_closest.h index d8f5736f..23b7f582 100644 --- a/vcg/space/index/grid_closest.h +++ b/vcg/space/index/grid_closest.h @@ -178,6 +178,7 @@ namespace vcg{ } if(!winner) newradius=radius+Si.voxel.Norm(); else newradius = _minDist; + iboxdone=iboxtodo; } while (_minDist>radius);