TBVTree

Windows
MacOS
Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Public/BVTree.h

Include

#include "BVTree.h"

Syntax

template<typename InElementType, typename InAllocator>
struct TBVTree

Constructors

Name Description

Public function

TBVTree()

Public function

TBVTree

(
    const TArray< FElement >& InElemen...
)

Public function

TBVTree

(
    TArray< FElement >&& InElements
)

Functions

Name Description

Protected function Static

FBox

 

CalcElementBounds

(
    const FElement&
)

You have to supply this yourself

Protected function Static

FBox

 

CalcNodeBounds

(
    const TArray< FElementBox >& Eleme...,
    const int StartIndex,
    const int LimitIndex
)

Protected function

void

 

Create

(
    TArray< FElement >&& InElements
)

Protected function

void

 

Create

(
    const TArray< FElement >& InElemen...
)

Protected function

void

 

CreateCommonInternal()

Assumes Elements has been set up

Public function Const

const TArray...

 

GetBoundingBoxes()

Public function Const

const TArray...

 

GetElements()

Protected function Static

int

 

GetLongestAxis

(
    const FBox& NodeBounds
)

Public function Const

const TArray...

 

GetNodes()

Public function Const

void

 

GetOverlapping

(
    const FBox& Box,
    TArray< FElement >& OutOverlapping...
)

Public function Const

bool

 

IsEmpty()

Public function

void

 

RecreateTree

(
    const TArray< FElement >& InElemen...
)

Public function

void

 

RecreateTree

(
    TArray< FElement >&& InElements
)

Protected function

void

 

Reset()

Protected function

void

 

Subdivide

(
    TArray< FElementBox >& ElementBBox...,
    const int StartIndex,
    const int LimitIndex,
    int& CurrentNode
)

Classes

Name

Description

Public struct

FElementBox

Typedefs

Name

Description

FElement

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss