Antkeeper
0.0.1
|
Single node in a bounding volume hierarchy. More...
#include <bvh-node.hpp>
Public Member Functions | |
constexpr bool | is_leaf () const noexcept |
Returns true if the node is a leaf node, false otherwise. More... | |
Public Attributes | |
geom::box< float > | bounds |
Node bounds. More... | |
std::uint32_t | size |
Number of primitives in the node. More... | |
std::uint32_t | offset |
Offset to the first child node (non-leaf) or primitive (leaf). More... | |
Single node in a bounding volume hierarchy.
Definition at line 31 of file bvh-node.hpp.
|
inlineconstexprnoexcept |
Returns true
if the node is a leaf node, false
otherwise.
Definition at line 34 of file bvh-node.hpp.
geom::box<float> geom::bvh_node::bounds |
Node bounds.
Definition at line 40 of file bvh-node.hpp.
std::uint32_t geom::bvh_node::offset |
Offset to the first child node (non-leaf) or primitive (leaf).
Definition at line 46 of file bvh-node.hpp.
std::uint32_t geom::bvh_node::size |
Number of primitives in the node.
Definition at line 43 of file bvh-node.hpp.