|
cgv
|
A single node of a bounding volume hierarchy. More...
#include <bvh.h>
Public Attributes | |
| cgv::box3 | bounds = {} |
| The node's axis aligned bounding box. | |
| std::vector< size_t > | primitive_indices |
| The list of primitive indices contained in this node. After building the tree, only leaf nodes will have a non-empty list. | |
| std::unique_ptr< bvh_node > | child_a |
| The first child node of this node. | |
| std::unique_ptr< bvh_node > | child_b |
| The second child node of this node. | |
A single node of a bounding volume hierarchy.
Each node may hold pointers to two child nodes.
| cgv::box3 cgv::data::bvh_node::bounds = {} |
| std::unique_ptr<bvh_node> cgv::data::bvh_node::child_a |
| std::unique_ptr<bvh_node> cgv::data::bvh_node::child_b |
| std::vector<size_t> cgv::data::bvh_node::primitive_indices |