Skip to content

Commit 9087efc

Browse files
committed
small correction brute force
1 parent c426be1 commit 9087efc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/slam6d/BruteForceNotATree.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
#include "slam6d/BruteForceNotATree.h"
11+
#include "slam6d/globals.icc"
1112
#include <limits.h>
1213

1314
/**
@@ -63,6 +64,7 @@ double *BruteForceNotATree::FindClosest(double *_p, double maxdist2, int threadN
6364
idx = i;
6465
}
6566
}
66-
67+
68+
if (Dist2(_p, pts[idx]) > maxdist2) return 0;
6769
return pts[idx];
6870
}

0 commit comments

Comments
 (0)