MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
MobileRT::BVH< T >::BuildNode Struct Reference
Collaboration diagram for MobileRT::BVH< T >::BuildNode:
Collaboration graph

Public Member Functions

 BuildNode ()=default
 
 BuildNode (AABB &&box, const ::std::int32_t oldIndex)
 

Public Attributes

AABB box_ {}
 
::glm::vec3 centroid_ {}
 
::std::int32_t oldIndex_ {}
 

Detailed Description

template<typename T>
struct MobileRT::BVH< T >::BuildNode

An auxiliary node used for the construction of the BVH. It is used to sort all the AABBs by the position of the centroid.

Constructor & Destructor Documentation

◆ BuildNode() [1/2]

template<typename T>
MobileRT::BVH< T >::BuildNode::BuildNode ( )
explicitdefault

The constructor.

Here is the caller graph for this function:

◆ BuildNode() [2/2]

template<typename T>
MobileRT::BVH< T >::BuildNode::BuildNode ( AABB &&  box,
const ::std::int32_t  oldIndex 
)
inlineexplicit

The constructor.

Parameters
boxThe box to store in the node.
oldIndexThe old index of the box in the original vector (used to put the box in the proper position.
Here is the call graph for this function:

Member Data Documentation

◆ box_

template<typename T>
AABB MobileRT::BVH< T >::BuildNode::box_ {}

◆ centroid_

template<typename T>
::glm::vec3 MobileRT::BVH< T >::BuildNode::centroid_ {}

◆ oldIndex_

template<typename T>
::std::int32_t MobileRT::BVH< T >::BuildNode::oldIndex_ {}

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