ClosestIterator avoids to put the query point p into the result set
This commit is contained in:
parent
11d1545f5f
commit
7fb7f4b401
|
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.16 2006/08/23 15:22:14 marfr960
|
||||||
|
*** empty log message ***
|
||||||
|
|
||||||
Revision 1.14 2006/06/01 20:53:56 cignoni
|
Revision 1.14 2006/06/01 20:53:56 cignoni
|
||||||
added missing header
|
added missing header
|
||||||
|
|
||||||
|
|
@ -434,8 +437,9 @@ namespace vcg{
|
||||||
|
|
||||||
CoordType nearest;
|
CoordType nearest;
|
||||||
ScalarType dist=max_dist;
|
ScalarType dist=max_dist;
|
||||||
if (dist_funct((**l),p,dist,nearest))
|
if (dist_funct((**l), p, dist, nearest))
|
||||||
Elems.push_back(Entry_Type(elem,fabs(dist),nearest));
|
if (dist > 0.f) // avoids to insert p in the query result
|
||||||
|
Elems.push_back(Entry_Type(elem,fabs(dist),nearest));
|
||||||
tm.Mark(elem);
|
tm.Mark(elem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue