27#ifndef EASY3D_KD_TREE_SEARCH_H
28#define EASY3D_KD_TREE_SEARCH_H
32#include <easy3d/core/types.h>
129 std::vector<float> &squared_distances)
const = 0;
153 std::vector<float> &squared_distances)
const = 0;
Base class for nearest neighbor search using KdTree.
Definition: kdtree_search.h:80
virtual void find_points_in_range(const vec3 &p, float squared_radius, std::vector< int > &neighbors, std::vector< float > &squared_distances) const =0
Queries the nearest neighbors within a fixed range.
virtual void find_closest_k_points(const vec3 &p, int k, std::vector< int > &neighbors, std::vector< float > &squared_distances) const =0
Queries the K nearest neighbors for a given point.
KdTreeSearch(const PointCloud *cloud)
Constructor.
Definition: kdtree_search.cpp:32
virtual void find_points_in_range(const vec3 &p, float squared_radius, std::vector< int > &neighbors) const =0
Queries the nearest neighbors within a fixed range.
virtual void find_closest_k_points(const vec3 &p, int k, std::vector< int > &neighbors) const =0
Queries the K nearest neighbors for a given point.
virtual int find_closest_point(const vec3 &p) const =0
Queries the closest point for a given point.
virtual int find_closest_point(const vec3 &p, float &squared_distance) const =0
Queries the closest point for a given point.
A data structure for point clouds.
Definition: point_cloud.h:45
Definition: collider.cpp:182