Antkeeper  0.0.1
Public Member Functions | Public Attributes | List of all members
geom::bvh_node Struct Reference

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...
 

Detailed Description

Single node in a bounding volume hierarchy.

Definition at line 31 of file bvh-node.hpp.

Member Function Documentation

◆ is_leaf()

constexpr bool geom::bvh_node::is_leaf ( ) const
inlineconstexprnoexcept

Returns true if the node is a leaf node, false otherwise.

Definition at line 34 of file bvh-node.hpp.

Member Data Documentation

◆ bounds

geom::box<float> geom::bvh_node::bounds

Node bounds.

Definition at line 40 of file bvh-node.hpp.

◆ offset

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.

◆ size

std::uint32_t geom::bvh_node::size

Number of primitives in the node.

Definition at line 43 of file bvh-node.hpp.


The documentation for this struct was generated from the following file: