![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BVTree.h>
Classes | |
| struct | FElementBox |
Public Types | |
| typedef InElementType | FElement |
Public Member Functions | |
| TBVTree () | |
| TBVTree (const TArray< FElement > &InElements) | |
| TBVTree (TArray< FElement > &&InElements) | |
| void | RecreateTree () |
| void | RecreateTree (const TArray< FElement > &InElements) |
| void | RecreateTree (TArray< FElement > &&InElements) |
| void | GetOverlapping (const FBox &Box, TArray< FElement > &OutOverlappingElements) const |
| const TArray< int16, InAllocator > & | GetNodes () const |
| const TArray< FBox, InAllocator > & | GetBoundingBoxes () const |
| const TArray< FElement > & | GetElements () const |
| TArray< FElement > & | GetElements () |
| bool | IsEmpty () const |
Protected Member Functions | |
| void | Subdivide (TArray< FElementBox > &ElementBBoxes, const int StartIndex, const int LimitIndex, int &CurrentNode) |
| void | Reset () |
| void | Create (const TArray< FElement > &InElements) |
| void | Create (TArray< FElement > &&InElements) |
| void | CreateCommonInternal () |
Static Protected Member Functions | |
| static FBox | CalcNodeBounds (const TArray< FElementBox > &ElementBBoxes, const int StartIndex, const int LimitIndex) |
| static int | GetLongestAxis (const FBox &NodeBounds) |
| static FBox | CalcElementBounds (const FElement &) |
BVTree - Bounding Volumes Tree
A binary search tree where each node has a Bounding Volume which is either an element (leaf nodes) or a volume encompassing all of its children (non-leaf nodes).
It provides fast gathering of all bounding volumes overlapping a given FBox (see GetOverlapping).
Users are expected to provide an implementation of CalcElementBounds for ElementType: static FBox CalcElementBounds(const FElement& Element) const
| typedef InElementType TBVTree< InElementType, InAllocator >::FElement |
|
inline |
|
inline |
|
inline |
|
staticprotected |
|
inlinestaticprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlinestaticprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |