MobileRT
1.0
A multi platform C++ CPU progressive Ray Tracer.
|
Public Member Functions | |
BuildNode ()=default | |
BuildNode (AABB &&box, const ::std::int32_t oldIndex) | |
Public Attributes | |
AABB | box_ {} |
::glm::vec3 | centroid_ {} |
::std::int32_t | oldIndex_ {} |
An auxiliary node used for the construction of the BVH. It is used to sort all the AABBs by the position of the centroid.
|
explicitdefault |
The constructor.
|
inlineexplicit |
The constructor.
box | The box to store in the node. |
oldIndex | The old index of the box in the original vector (used to put the box in the proper position. |
AABB MobileRT::BVH< T >::BuildNode::box_ {} |
::glm::vec3 MobileRT::BVH< T >::BuildNode::centroid_ {} |
::std::int32_t MobileRT::BVH< T >::BuildNode::oldIndex_ {} |