Generic interface for different types of octrees (sparse, dense, etc.) to exchange data structures within Jobs. More...
Public Member Functions | |
void | Clear () |
float3 | GetBottomLeftPosition () |
int3 | GetCellCoordinates (float3 position) |
JobHandle | GetCellsInBounds (Bounds bounds, ref NativeList< uint > result, JobHandle dependsOn) |
JobHandle | GetCellsInBounds (NativeArray< Bounds > bounds, ref NativeParallelHashSet< uint > result, JobHandle dependsOn, int innerLoopBatchCount=1) |
JobHandle | GetCellsInRadii (NativeArray< float3 > centers, NativeArray< float > radii, ref NativeParallelHashSet< uint > result, JobHandle dependsOn, int innerLoopBatchCount=1) |
JobHandle | GetCellsInRadius (float3 center, float radius, ref NativeList< uint > result, JobHandle dependsOn) |
NativeParallelMultiHashMap< uint, T > | GetDataBuckets () |
int | GetMaxDepth () |
NativeList< OctreeNode > | GetNodes () |
OctreeNode * | GetRoot () |
float3 | GetScale () |
void | Insert (float3 position, T value) |
bool | Remove (float3 position, T value) |
bool | Update (T value, float3 oldPosition, float3 newPosition) |
Properties | |
int | Count [get] |
bool | IsCreated [get] |
Generic interface for different types of octrees (sparse, dense, etc.) to exchange data structures within Jobs.
T |
T | : | unmanaged |
void Clear | ( | ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
int3 GetCellCoordinates | ( | float3 | position | ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
JobHandle GetCellsInBounds | ( | Bounds | bounds, |
ref NativeList< uint > | result, | ||
JobHandle | dependsOn ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
JobHandle GetCellsInBounds | ( | NativeArray< Bounds > | bounds, |
ref NativeParallelHashSet< uint > | result, | ||
JobHandle | dependsOn, | ||
int | innerLoopBatchCount = 1 ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
JobHandle GetCellsInRadii | ( | NativeArray< float3 > | centers, |
NativeArray< float > | radii, | ||
ref NativeParallelHashSet< uint > | result, | ||
JobHandle | dependsOn, | ||
int | innerLoopBatchCount = 1 ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
JobHandle GetCellsInRadius | ( | float3 | center, |
float | radius, | ||
ref NativeList< uint > | result, | ||
JobHandle | dependsOn ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
void Insert | ( | float3 | position, |
T | value ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
bool Remove | ( | float3 | position, |
T | value ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.
bool Update | ( | T | value, |
float3 | oldPosition, | ||
float3 | newPosition ) |
Implemented in NativeDenseOctree< T >, and NativeSparseOctree< T >.