corrected 1 bug in operator ++ of closest iterator
This commit is contained in:
parent
ad5a634220
commit
478e2ad4cd
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.21 2006/10/25 15:59:29 pietroni
|
||||||
|
corrected bug in closest iterator.. if doesn't find any alement at first cells examinated continue until find some element
|
||||||
|
|
||||||
Revision 1.20 2006/10/25 09:47:53 pietroni
|
Revision 1.20 2006/10/25 09:47:53 pietroni
|
||||||
added max dist control and constructor
|
added max dist control and constructor
|
||||||
|
|
||||||
|
@ -486,6 +489,9 @@ namespace vcg{
|
||||||
Refresh();
|
Refresh();
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
bool ToUpdate()
|
||||||
|
{return ((Elems.size()==0)||(Dist()>radius));}
|
||||||
|
|
||||||
void operator ++()
|
void operator ++()
|
||||||
{
|
{
|
||||||
if (Elems.size()>0)
|
if (Elems.size()>0)
|
||||||
|
@ -493,7 +499,7 @@ namespace vcg{
|
||||||
CurrentElem--;
|
CurrentElem--;
|
||||||
Elems.pop_back();
|
Elems.pop_back();
|
||||||
}
|
}
|
||||||
else
|
if ((!End())&& ToUpdate())
|
||||||
while ((!End())&& Refresh()&&(!_EndGrid()))
|
while ((!End())&& Refresh()&&(!_EndGrid()))
|
||||||
_NextShell();
|
_NextShell();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue