Monav project changes backport
This commit is contained in:
parent
95dddcf522
commit
8148fad464
@ -133,10 +133,10 @@ public:
|
|||||||
delete[] kdtree;
|
delete[] kdtree;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NearestNeighbor( InputPoint* result, const InputPoint& point, double radius = std::numeric_limits< T >::max() ) {
|
bool NearestNeighbor( InputPoint* result, const InputPoint& point ) {
|
||||||
Metric distance;
|
Metric distance;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
double nearestDistance = radius;
|
double nearestDistance = std::numeric_limits< T >::max();
|
||||||
std::stack< NNTree > s;
|
std::stack< NNTree > s;
|
||||||
s.push ( NNTree ( 0, size, 0, boundingBox ) );
|
s.push ( NNTree ( 0, size, 0, boundingBox ) );
|
||||||
while ( !s.empty() ) {
|
while ( !s.empty() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user