chenged GridDoRay to GridDoRay2D.. corrected one bug in the initial #define
This commit is contained in:
parent
9b6833e521
commit
ad69d7d893
|
@ -21,8 +21,8 @@
|
|||
* *
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __VCGLIB_GRID_CLOSEST
|
||||
#define __VCGLIB_GRID_CLOSEST
|
||||
#ifndef __VCGLIB_GRID_CLOSEST_2D
|
||||
#define __VCGLIB_GRID_CLOSEST_2D
|
||||
|
||||
#include <vcg/space/index/index2D/space_iterators_2D.h>
|
||||
#include <vcg/space/intersection2.h>
|
||||
|
@ -175,7 +175,7 @@ typename SPATIAL_INDEX::ObjPtr GridClosest2D(SPATIAL_INDEX &Si,
|
|||
}
|
||||
|
||||
template <class SPATIALINDEXING,class OBJRAYISECTFUNCTOR, class OBJMARKER>
|
||||
typename SPATIALINDEXING::ObjPtr GridDoRay(SPATIALINDEXING &_Si,
|
||||
typename SPATIALINDEXING::ObjPtr GridDoRay2D(SPATIALINDEXING &_Si,
|
||||
OBJRAYISECTFUNCTOR &_rayIntersector,
|
||||
OBJMARKER &_marker,
|
||||
const Ray2<typename SPATIALINDEXING::ScalarType> & _ray,
|
||||
|
|
|
@ -171,7 +171,7 @@ public:
|
|||
const Ray2<ScalarType> & _ray, const ScalarType & _maxDist,
|
||||
ScalarType & _t)
|
||||
{
|
||||
return(vcg::GridDoRay<MyGridType,OBJRAYISECTFUNCTOR,OBJMARKER>(*this,_rayIntersector,_marker,_ray,_maxDist,_t));
|
||||
return(vcg::GridDoRay2D<MyGridType,OBJRAYISECTFUNCTOR,OBJMARKER>(*this,_rayIntersector,_marker,_ray,_maxDist,_t));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue