From 5866d71f45594b13592e46d046437cbdffda6fb2 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 21 Sep 2005 09:21:20 +0000 Subject: [PATCH] added maximum radius control on Closest Itarator function: if (radius>=max_dist) end=true; in Nextshell( ) function --- vcg/space/index/space_iterators.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vcg/space/index/space_iterators.h b/vcg/space/index/space_iterators.h index 694875da..b2e2478b 100644 --- a/vcg/space/index/space_iterators.h +++ b/vcg/space/index/space_iterators.h @@ -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)