#include <TBvhBuilder.h>
◆ InfoNodeType
template<std::size_t N, typename Item , typename ItemToAABB >
◆ ItemInfoType
template<std::size_t N, typename Item , typename ItemToAABB >
◆ TBvhBuilder() [1/2]
template<std::size_t N, typename Item , typename ItemToAABB >
◆ TBvhBuilder() [2/2]
template<std::size_t N, typename Item , typename ItemToAABB >
◆ buildInformativeBvh()
template<std::size_t N, typename Item , typename ItemToAABB >
Build a BVH that contains additional information useful for many purposes. The built BVH has the following properties:
- Maximum items: The maximum number of items a leaf node can contain. This value can be set by
BvhParams
.
- Branch factor: The maximum number of children each node can have is
N
.
- Split axis: The axis of the offset between children. The split axis associated with child
i
is for the axis of offset between child i
and child i + 1
.
- Split method: How the split axis and its offset value is chosen. This can be set by
BvhParams
. - Returns
- The root node of the built BVH. Memory of the BVH is managed by this builder.
- Note
- This method will clear any previous build data.
◆ calcMaxDepth()
template<std::size_t N, typename Item , typename ItemToAABB >
◆ calcTotalItems()
template<std::size_t N, typename Item , typename ItemToAABB >
◆ calcTotalNodes()
template<std::size_t N, typename Item , typename ItemToAABB >
◆ clearBuildData()
template<std::size_t N, typename Item , typename ItemToAABB >
◆ totalInfoNodes()
template<std::size_t N, typename Item , typename ItemToAABB >
- Returns
- Number of nodes of the most recent BVH built by this builder.
◆ totalItems()
template<std::size_t N, typename Item , typename ItemToAABB >
- Returns
- Number of contained items of the most recent BVH built by this builder.
The documentation for this class was generated from the following files: