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 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
Leaves

Methods

Member Description
AddProxy(ref BoundingBox, Object, uint, bool) Create a proxy. Provide a tight fitting BoundingBox and a userData pointer.
RemoveProxy(int) Destroy a proxy. This asserts if the id is invalid.
MoveProxy(int, ref BoundingBox, 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.
GetUserData<T>(int)
GetRoot()
GetLeafCount()
GetLeafCount(int)
GetNodeLeaves(int, List<int>)
GetAabb(int)
GetChildren(int, ref int, ref int)
GetFatAABB(int, ref BoundingBox) Get the fat BoundingBox for a proxy.
Query(Func<int, bool>, ref BoundingBox)
CountLeaves(int)
GetHeight()
Balance(int)
OverlapAllFrustum<T>(ref BoundingFrustum, List<T>, bool)
OverlapAllFrustum<T>(ref BoundingFrustum, List<T>, uint, bool)
OverlapAllFrustum<T>(ref BoundingFrustum, List<T>, List<bool>, bool)
OverlapAllFrustum<T>(ref BoundingFrustum, Action<T, bool>)
OverlapAllFrustum<T, Op>(ref BoundingFrustum, ref Op)
OverlapAllFrustum<T>(ref BoundingFrustum, List<T>, List<bool>, float, bool)
OverlapAllFrustum<T>(ref BoundingFrustum, Action<T, bool>, float)
OverlapAllFrustum<T, Op>(ref BoundingFrustum, float, ref Op)
OverlapAllFrustumConservative<T>(ref BoundingFrustum, List<T>, uint, bool)
OverlapAllFrustumAny<T>(ref BoundingFrustum, List<T>, bool)
OverlapAllLineSegment<T>(ref Line, List<MyLineSegmentOverlapResult<T>>)
OverlapAllLineSegment<T>(ref Line, List<MyLineSegmentOverlapResult<T>>, uint)
OverlapAllBoundingBox<T>(ref BoundingBox, List<T>, uint, bool)
OverlapsAnyLeafBoundingBox(ref BoundingBox)
OverlapSizeableClusters(ref BoundingBox, List<BoundingBox>, double)
OverlapAllBoundingSphere<T>(ref BoundingSphere, List<T>, bool)
GetAll<T>(List<T>, bool, List<BoundingBox>)
GetAllNodeBounds(List<BoundingBox>)
Clear()
static Dispose()

Clone this wiki locally