Table of Contents

Class StaticLineGeometryOctree

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

Static octree for line geometry

public class StaticLineGeometryOctree : StaticOctree<KeyValuePair<int, BoundingBox>>, IOctreeBasic
Inheritance
StaticLineGeometryOctree
Implements
Inherited Members

Constructors

StaticLineGeometryOctree(IList<Vector3>?, IList<int>?, OctreeBuildParameter)

Initializes a new instance of the StaticLineGeometryOctree class.

public StaticLineGeometryOctree(IList<Vector3>? positions, IList<int>? indices, OctreeBuildParameter parameter)

Parameters

positions IList<Vector3>

The positions.

indices IList<int>

The indices.

parameter OctreeBuildParameter

The parameter.

Fields

Indices

protected readonly IList<int>? Indices

Field Value

IList<int>

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<KeyValuePair<int, BoundingBox>>.Octant octant, HitTestContext? context, ref BoundingSphere sphere, ref List<HitTestResult> result, ref bool isIntersect)

Parameters

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

Returns

bool

GetBoundingBoxFromItem(ref KeyValuePair<int, BoundingBox>)

protected override BoundingBox GetBoundingBoxFromItem(ref KeyValuePair<int, BoundingBox> item)

Parameters

item KeyValuePair<int, BoundingBox>

Returns

BoundingBox

GetMaxBound()

Get the max bounding box of the octree

protected override BoundingBox GetMaxBound()

Returns

BoundingBox

GetObjects()

Gets the objects.

protected override KeyValuePair<int, BoundingBox>[] GetObjects()

Returns

KeyValuePair<int, BoundingBox>[]

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

protected override bool HitTestCurrentNodeExcludeChild(ref StaticOctree<KeyValuePair<int, BoundingBox>>.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<KeyValuePair<int, BoundingBox>>.Octant
context HitTestContext
model object
geometry Geometry3D
modelMatrix Matrix4x4
rayModel Ray
returnMultiple bool
hits List<HitTestResult>
isIntersect bool
hitThickness float

Returns

bool