Skip to content

Commit

Permalink
Allow delta kernel to evaluate all dimensions.
Browse files Browse the repository at this point in the history
Close #640
  • Loading branch information
abellgithub committed Jun 19, 2015
1 parent fa4f0bb commit 886d01c
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 322 deletions.
8 changes: 7 additions & 1 deletion include/pdal/KDIndex.hpp
Expand Up @@ -89,11 +89,17 @@ class PDAL_DLL KDIndex
double const& z,
double const& r) const;

PointId neighbor(double const& x, double const& y, double const& z) const
{
std::vector<PointId> ids = neighbors(x, y, z, 1);
return ids[0];
}

std::vector<PointId> neighbors(
double const& x,
double const& y,
double const& z,
point_count_t count = 1) const;
point_count_t count) const;

void build(bool b3d = true);

Expand Down

0 comments on commit 886d01c

Please sign in to comment.