Class LineGeometryOctree
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
[Obsolete("Please use StaticLineGeometryOctree for better performance")]
public class LineGeometryOctree : DynamicOctreeBase<KeyValuePair<int, BoundingBox>>, IDynamicOctree, IOctreeBasic
- Inheritance
-
LineGeometryOctree
- Implements
- Inherited Members
- Extension Methods
Constructors
LineGeometryOctree(BoundingBox, List<KeyValuePair<int, BoundingBox>>?, IDynamicOctree?, OctreeBuildParameter?, Stack<KeyValuePair<int, IDynamicOctree[]>>?)
protected LineGeometryOctree(BoundingBox bound, List<KeyValuePair<int, BoundingBox>>? list, IDynamicOctree? parent, OctreeBuildParameter? paramter, Stack<KeyValuePair<int, IDynamicOctree[]>>? stackCache)
Parameters
boundBoundingBoxlistList<KeyValuePair<int, BoundingBox>>parentIDynamicOctreeparamterOctreeBuildParameterstackCacheStack<KeyValuePair<int, IDynamicOctree[]>>
LineGeometryOctree(IList<Vector3>?, IList<int>?, ref BoundingBox, List<KeyValuePair<int, BoundingBox>>, IDynamicOctree?, OctreeBuildParameter?, Stack<KeyValuePair<int, IDynamicOctree[]>>?)
protected LineGeometryOctree(IList<Vector3>? positions, IList<int>? indices, ref BoundingBox bound, List<KeyValuePair<int, BoundingBox>> triIndex, IDynamicOctree? parent, OctreeBuildParameter? paramter, Stack<KeyValuePair<int, IDynamicOctree[]>>? stackCache)
Parameters
positionsIList<Vector3>indicesIList<int>boundBoundingBoxtriIndexList<KeyValuePair<int, BoundingBox>>parentIDynamicOctreeparamterOctreeBuildParameterstackCacheStack<KeyValuePair<int, IDynamicOctree[]>>
LineGeometryOctree(IList<Vector3>?, IList<int>?, OctreeBuildParameter?, Stack<KeyValuePair<int, IDynamicOctree[]>>?)
public LineGeometryOctree(IList<Vector3>? positions, IList<int>? indices, OctreeBuildParameter? parameter, Stack<KeyValuePair<int, IDynamicOctree[]>>? stackCache = null)
Parameters
positionsIList<Vector3>indicesIList<int>parameterOctreeBuildParameterstackCacheStack<KeyValuePair<int, IDynamicOctree[]>>
LineGeometryOctree(IList<Vector3>?, IList<int>?, Stack<KeyValuePair<int, IDynamicOctree[]>>?)
public LineGeometryOctree(IList<Vector3>? positions, IList<int>? indices, Stack<KeyValuePair<int, IDynamicOctree[]>>? stackCache = null)
Parameters
positionsIList<Vector3>indicesIList<int>stackCacheStack<KeyValuePair<int, IDynamicOctree[]>>
Properties
Indices
public IList<int>? Indices { get; }
Property Value
Positions
public IList<Vector3>? Positions { get; }
Property Value
Methods
CreateNodeWithParent(ref BoundingBox, List<KeyValuePair<int, BoundingBox>>, IDynamicOctree)
protected override IDynamicOctree CreateNodeWithParent(ref BoundingBox region, List<KeyValuePair<int, BoundingBox>> objList, IDynamicOctree parent)
Parameters
regionBoundingBoxobjListList<KeyValuePair<int, BoundingBox>>parentIDynamicOctree
Returns
FindNearestPointBySphereExcludeChild(HitTestContext?, ref BoundingSphere, ref List<HitTestResult>, ref bool)
public override bool FindNearestPointBySphereExcludeChild(HitTestContext? context, ref BoundingSphere sphere, ref List<HitTestResult> result, ref bool isIntersect)
Parameters
contextHitTestContextsphereBoundingSphereresultList<HitTestResult>isIntersectbool
Returns
GetBoundingBoxFromItem(KeyValuePair<int, BoundingBox>)
protected override BoundingBox GetBoundingBoxFromItem(KeyValuePair<int, BoundingBox> item)
Parameters
itemKeyValuePair<int, BoundingBox>
Returns
HitTestCurrentNodeExcludeChild(HitTestContext?, object?, Geometry3D?, Matrix4x4, ref Ray, ref List<HitTestResult>, ref bool, float)
public override bool HitTestCurrentNodeExcludeChild(HitTestContext? context, object? model, Geometry3D? geometry, Matrix4x4 modelMatrix, ref Ray rayModel, ref List<HitTestResult> hits, ref bool isIntersect, float hitThickness)
Parameters
contextHitTestContextmodelobjectgeometryGeometry3DmodelMatrixMatrix4x4rayModelRayhitsList<HitTestResult>isIntersectboolhitThicknessfloat