added maximum radius control on Closest Itarator function:
if (radius>=max_dist) end=true; in Nextshell( ) function
This commit is contained in:
parent
77d69c2aec
commit
5866d71f45
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue