1 #ifndef COGS_AABB_HIERARCHY_H 2 #define COGS_AABB_HIERARCHY_H 5 #include <Utils/GeometryStructures.h> 17 AabbHierarchy(std::vector<geom::Triangle3> &triangles,
const geom::Aabb3 &aabb);
20 void GetIntersections(
const geom::Line3 &ray, std::vector<glm::vec3> *intersections)
const;
25 TreeNode(std::vector<geom::Triangle3> &triangles,
const geom::Aabb3 &aabb,
const uint8_t depth = 0,
const uint8_t cycle_counter = 0);
27 void GetIntersections(
const geom::Line3 &ray, std::vector<glm::vec3> *intersections)
const;
30 const geom::Aabb3 aabb_;
31 std::unique_ptr<TreeNode> l_node_ =
nullptr, r_node_ =
nullptr;
32 std::vector<geom::Triangle3> triangles_;
34 const uint8_t kMinLeafElements = 10;
37 std::unique_ptr<TreeNode> tree;
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
Space-partitioning data structure for point clouds.
Definition: AabbHierarchy.h:12