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
positionsIList<Vector3>The positions.
indicesIList<int>The indices.
parameterOctreeBuildParameterThe parameter.
Fields
Indices
protected readonly IList<int>? Indices
Field Value
Positions
protected readonly IList<Vector3>? Positions
Field Value
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
octantStaticOctree<KeyValuePair<int, BoundingBox>>.OctantcontextHitTestContextsphereBoundingSphereresultList<HitTestResult>isIntersectbool
Returns
GetBoundingBoxFromItem(ref KeyValuePair<int, BoundingBox>)
protected override BoundingBox GetBoundingBoxFromItem(ref KeyValuePair<int, BoundingBox> item)
Parameters
itemKeyValuePair<int, BoundingBox>
Returns
GetMaxBound()
Get the max bounding box of the octree
protected override BoundingBox GetMaxBound()
Returns
GetObjects()
Gets the objects.
protected override KeyValuePair<int, BoundingBox>[] GetObjects()
Returns
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
octantStaticOctree<KeyValuePair<int, BoundingBox>>.OctantcontextHitTestContextmodelobjectgeometryGeometry3DmodelMatrixMatrix4x4rayModelRayreturnMultipleboolhitsList<HitTestResult>isIntersectboolhitThicknessfloat