in GridDoRay function the RayIterator must be initialized with maximum distance

This commit is contained in:
Nico Pietroni 2006-08-29 15:38:36 +00:00
parent 5d7753b3cf
commit 1b117b6aba
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.11 2006/08/23 15:17:46 marfr960
*** empty log message ***
Revision 1.10 2006/05/17 12:48:52 pietroni
corrected bug in GridGetInBox function
@ -222,7 +225,7 @@ namespace vcg{
typename SPATIALINDEXING::ScalarType & _t)
{
typedef vcg::RayIterator<SPATIALINDEXING,OBJRAYISECTFUNCTOR,OBJMARKER> RayIteratorType;
RayIteratorType RayIte=RayIteratorType(_Si,_rayIntersector);
RayIteratorType RayIte=RayIteratorType(_Si,_rayIntersector,_maxDist);
RayIte.SetMarker(_marker);
RayIte.Init(_ray);