added maximum radius control on Closest Itarator function:

if (radius>=max_dist)
	end=true;

in Nextshell( ) function
This commit is contained in:
Nico Pietroni 2005-09-21 09:21:20 +00:00
parent 77d69c2aec
commit 5866d71f45
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ class ClosestIterator
///add cell to the curren set of explored cells
void _NextShell()
{
if (radius>=max_dist)
end=true;
radius+=voxel_min;
//control bounds
if (radius>max_dist)