A* Pathfinding Project  4.1.14
The A* Pathfinding Project for Unity 3D
VoxelArea Class Reference

Stores a voxel field. More...

Detailed Description

Stores a voxel field.

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Public Member Functions

 VoxelArea (int width, int depth)
 
void AddLinkedSpan (int index, uint bottom, uint top, int area, int voxelWalkableClimb)
 
int GetSpanCount ()
 
int GetSpanCountAll ()
 
void Reset ()
 

Public Attributes

int [] areaTypes
 
const float AvgSpanLayerCountEstimate = 8
 Initial estimate on the average number of spans (layers) in the voxel representation. More...
 
CompactVoxelCell [] compactCells
 
int compactSpanCount
 
CompactVoxelSpan [] compactSpans
 
readonly int depth = 0
 The depth of the field along the z-axis. More...
 
int [] DirectionX
 
int [] DirectionZ
 
ushort [] dist
 
const uint InvalidSpanValue = ~0U
 Constant for default LinkedVoxelSpan top and bottom values. More...
 
LinkedVoxelSpan [] linkedSpans
 
ushort maxDistance
 
const uint MaxHeight = 65536
 
const int MaxHeightInt = 65536
 
int maxRegions = 0
 
ushort [] tmpUShortArr
 
Vector3 [] VectorDirection
 
readonly int width = 0
 The width of the field along the x-axis. More...
 

Private Member Functions

void PushToSpanRemovedStack (int index)
 
void ResetLinkedVoxelSpans ()
 

Private Attributes

int linkedSpanCount
 
int [] removedStack = new int[128]
 
int removedStackCount = 0
 

Constructor & Destructor Documentation

◆ VoxelArea()

VoxelArea ( int  width,
int  depth 
)

Member Function Documentation

◆ AddLinkedSpan()

void AddLinkedSpan ( int  index,
uint  bottom,
uint  top,
int  area,
int  voxelWalkableClimb 
)

◆ GetSpanCount()

int GetSpanCount ( )

◆ GetSpanCountAll()

int GetSpanCountAll ( )

◆ PushToSpanRemovedStack()

void PushToSpanRemovedStack ( int  index)
private

◆ Reset()

void Reset ( )

◆ ResetLinkedVoxelSpans()

void ResetLinkedVoxelSpans ( )
private

Member Data Documentation

◆ areaTypes

int [] areaTypes

◆ AvgSpanLayerCountEstimate

const float AvgSpanLayerCountEstimate = 8

Initial estimate on the average number of spans (layers) in the voxel representation.

Should be greater or equal to 1

◆ compactCells

CompactVoxelCell [] compactCells

◆ compactSpanCount

int compactSpanCount

◆ compactSpans

CompactVoxelSpan [] compactSpans

◆ depth

readonly int depth = 0

The depth of the field along the z-axis.

[Limit: >= 0] [Units: vx]

◆ DirectionX

int [] DirectionX

◆ DirectionZ

int [] DirectionZ

◆ dist

ushort [] dist

◆ InvalidSpanValue

const uint InvalidSpanValue = ~0U

Constant for default LinkedVoxelSpan top and bottom values.

It is important with the U since ~0 != ~0U This can be used to check if a LinkedVoxelSpan is valid and not just the default span

◆ linkedSpanCount

int linkedSpanCount
private

◆ linkedSpans

LinkedVoxelSpan [] linkedSpans

◆ maxDistance

ushort maxDistance

◆ MaxHeight

const uint MaxHeight = 65536

◆ MaxHeightInt

const int MaxHeightInt = 65536

◆ maxRegions

int maxRegions = 0

◆ removedStack

int [] removedStack = new int[128]
private

◆ removedStackCount

int removedStackCount = 0
private

◆ tmpUShortArr

ushort [] tmpUShortArr

◆ VectorDirection

Vector3 [] VectorDirection

◆ width

readonly int width = 0

The width of the field along the x-axis.

[Limit: >= 0] [Units: vx]


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