8 #include <COGS/PointCloud.h> 20 static const uint8_t POINTS_THRESHOLD = 64;
38 Octree(
const std::vector<glm::vec3> &positions);
52 void Include(
const std::vector<const cogs::PointCloud *> &clouds);
59 std::string ToString()
const;
66 size_t GetNodeCount()
const;
73 std::vector<geom::Aabb3> GetNodeCubes()
const;
84 bool HasPointIn(
const glm::vec3 &location, float_t radius)
const;
93 bool HasPointIn(
const geom::Aabb3 &search_range)
const;
104 std::vector<uint32_t> Find(
const glm::vec3 &location, float_t radius)
const;
113 std::vector<uint32_t> Find(
const geom::Aabb3 &search_range)
const;
124 int32_t GetIntersectedPoint(
const geom::Ray3 &ray, std::optional<float> tolerance = std::nullopt)
const;
128 OctreeNode *root_ =
nullptr;
130 void InitializeRoot(
const std::vector<glm::vec3> &positions);
132 float_t GetMaximumExtent(
const std::vector<glm::vec3> &positions)
const;
134 float_t GetMinimumExtent(
const std::vector<glm::vec3> &positions)
const;
141 bool RayIntersectsPoint(
const geom::Ray3 &ray,
const glm::vec3 &point, std::optional<float> tolerance = std::nullopt)
const;
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
Management class for a set of data points in a 3D space.
Definition: PointCloud.h:32
Space-partitioning data structure for point clouds.
Definition: Octree.h:16