COGS
Computer Graphics Structures library
cogs::KdTree Class Reference

Space-partitioning data structure for point clouds. More...

Public Member Functions

 KdTree (const cogs::PointCloud &cloud)
 
 KdTree (const std::vector< const cogs::PointCloud *> clouds)
 
void Initialize (const cogs::PointCloud &cloud)
 Initializes the KdTree with points of the input cloud.
 
void Initialize (const std::vector< const cogs::PointCloud *> clouds)
 Initializes the KdTree with points of the input clouds.
 
bool IsPointInRange (const geom::Aabb3 &search_range) const
 Returns true if any of included points is included in the input AABB, else returns false.
 
void GetPointsInRange (const geom::Aabb3 &search_range, std::vector< uint32_t > *output) const
 Returns vector of points that are included in the input AABB.
 

Detailed Description

Space-partitioning data structure for point clouds.