Table of Contents

Class StaticPointGeometryOctree

Namespace
HelixToolkit.SharpDX.Utilities
Assembly
HelixToolkit.SharpDX.dll

Static octree for points

public class StaticPointGeometryOctree : StaticOctree<int>, IOctreeBasic
Inheritance
StaticPointGeometryOctree
Implements
Inherited Members

Constructors

StaticPointGeometryOctree(IList<Vector3>?, OctreeBuildParameter, Stack<KeyValuePair<int, IDynamicOctree[]>>?)

public StaticPointGeometryOctree(IList<Vector3>? positions, OctreeBuildParameter parameter, Stack<KeyValuePair<int, IDynamicOctree[]>>? stackCache = null)

Parameters

positions IList<Vector3>
parameter OctreeBuildParameter
stackCache Stack<KeyValuePair<int, IDynamicOctree[]>>

Fields

Positions

protected readonly IList<Vector3>? Positions

Field Value

IList<Vector3>

Methods

FindNearestPointBySphereExcludeChild(ref Octant, HitTestContext?, ref BoundingSphere, ref List<HitTestResult>, ref bool)

protected override bool FindNearestPointBySphereExcludeChild(ref StaticOctree<int>.Octant octant, HitTestContext? context, ref BoundingSphere sphere, ref List<HitTestResult> result, ref bool isIntersect)

Parameters

octant StaticOctree<int>.Octant
context HitTestContext
sphere BoundingSphere
result List<HitTestResult>
isIntersect bool

Returns

bool

GetBoundingBoxFromItem(ref int)

Gets the bounding box from item.

protected override BoundingBox GetBoundingBoxFromItem(ref int item)

Parameters

item int

The item.

Returns

BoundingBox

GetMaxBound()

Gets the maximum bound.

protected override BoundingBox GetMaxBound()

Returns

BoundingBox

GetObjects()

Gets the objects.

protected override int[] GetObjects()

Returns

int[]

HitTest(HitTestContext?, object?, Geometry3D?, Matrix4x4, ref List<HitTestResult>, float)

Hits the test.

public override bool HitTest(HitTestContext? context, object? model, Geometry3D? geometry, Matrix4x4 modelMatrix, ref List<HitTestResult> hits, float hitThickness)

Parameters

context HitTestContext

The context.

model object

The model.

geometry Geometry3D

The geometry.

modelMatrix Matrix4x4

The model matrix.

hits List<HitTestResult>

The hits.

hitThickness float

The hit thickness.

Returns

bool

HitTestCurrentNodeExcludeChild(ref Octant, HitTestContext?, object?, Geometry3D?, Matrix4x4, ref Ray, bool, ref List<HitTestResult>, ref bool, float)

protected override bool HitTestCurrentNodeExcludeChild(ref StaticOctree<int>.Octant octant, HitTestContext? context, object? model, Geometry3D? geometry, Matrix4x4 modelMatrix, ref Ray rayModel, bool returnMultiple, ref List<HitTestResult> hits, ref bool isIntersect, float hitThickness)

Parameters

octant StaticOctree<int>.Octant
context HitTestContext
model object
geometry Geometry3D
modelMatrix Matrix4x4
rayModel Ray
returnMultiple bool
hits List<HitTestResult>
isIntersect bool
hitThickness float

Returns

bool

IsContains(ref BoundingBox, BoundingBox, ref int)

protected override bool IsContains(ref BoundingBox source, BoundingBox target, ref int obj)

Parameters

source BoundingBox
target BoundingBox
obj int

Returns

bool