20 #ifndef ANTKEEPER_GEOM_BVH_NODE_HPP
21 #define ANTKEEPER_GEOM_BVH_NODE_HPP
34 [[nodiscard]]
inline constexpr
bool is_leaf() const noexcept
Single node in a bounding volume hierarchy.
std::uint32_t offset
Offset to the first child node (non-leaf) or primitive (leaf).
std::uint32_t size
Number of primitives in the node.
constexpr bool is_leaf() const noexcept
Returns true if the node is a leaf node, false otherwise.
geom::box< float > bounds
Node bounds.
n-dimensional axis-aligned rectangle.