Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.MyDynamicAABBTree

Malware edited this page Dec 21, 2018 · 54 revisions

Index

MyDynamicAABBTree Class

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Dynamic aabb tree implementation as a prunning structure

Fields

Member Description
static int NullNode A dynamic tree arranges data in a binary tree to accelerate queries such as volume queries and ray casts. Leafs are proxies with an BoundingBox. In the tree we expand the proxy BoundingBox by Settings.b2_fatAABBFactor so that the proxy BoundingBox is bigger than the client object. This allows the client object to move by small amounts without triggering a tree update. Nodes are pooled and relocatable, so we use node indices rather than pointers.

Properties

Member Description
DictionaryValuesReader<System.Int32, VRageMath.MyDynamicAABBTree+DynamicTreeNode> Leaves

Methods

Member Description
int AddProxy(ref VRageMath.BoundingBox, System.Object, uint, bool) Create a proxy. Provide a tight fitting BoundingBox and a userData pointer.
void RemoveProxy(int) Destroy a proxy. This asserts if the id is invalid.
bool MoveProxy(int, ref VRageMath.BoundingBox, VRageMath.Vector3) Move a proxy with a swepted BoundingBox. If the proxy has moved outside of its fattened BoundingBox, then the proxy is removed from the tree and re-inserted. Otherwise the function returns immediately.
VRageMath.T GetUserData<T>(int)
int GetRoot()
int GetLeafCount()
int GetLeafCount(int)
void GetNodeLeaves(int, List<System.Int32>)
VRageMath.BoundingBox GetAabb(int)
void GetChildren(int, ref int, ref int)
void GetFatAABB(int, ref VRageMath.BoundingBox) Get the fat BoundingBox for a proxy.
void Query(Func<System.Int32, System.Boolean>, ref VRageMath.BoundingBox)
int CountLeaves(int)
int GetHeight()
int Balance(int)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, List<T>, bool)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, List<T>, uint, bool)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, List<T>, List<System.Boolean>, bool)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, Action<T, System.Boolean>)
void OverlapAllFrustum<T, Op>(ref VRageMath.BoundingFrustum, ref VRageMath.Op)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, List<T>, List<System.Boolean>, float, bool)
void OverlapAllFrustum<T>(ref VRageMath.BoundingFrustum, Action<T, System.Boolean>, float)
void OverlapAllFrustum<T, Op>(ref VRageMath.BoundingFrustum, float, ref VRageMath.Op)
void OverlapAllFrustumConservative<T>(ref VRageMath.BoundingFrustum, List<T>, uint, bool)
void OverlapAllFrustumAny<T>(ref VRageMath.BoundingFrustum, List<T>, bool)
void OverlapAllLineSegment<T>(ref VRageMath.Line, List<>)
void OverlapAllLineSegment<T>(ref VRageMath.Line, List<>, uint)
void OverlapAllBoundingBox<T>(ref VRageMath.BoundingBox, List<T>, uint, bool)
bool OverlapsAnyLeafBoundingBox(ref VRageMath.BoundingBox)
void OverlapSizeableClusters(ref VRageMath.BoundingBox, List<VRageMath.BoundingBox>, double)
void OverlapAllBoundingSphere<T>(ref VRageMath.BoundingSphere, List<T>, bool)
void GetAll<T>(List<T>, bool, List<VRageMath.BoundingBox>)
void GetAllNodeBounds(List<VRageMath.BoundingBox>)
void Clear()
static void Dispose()

Clone this wiki locally