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
positionsIList<Vector3>parameterOctreeBuildParameterstackCacheStack<KeyValuePair<int, IDynamicOctree[]>>
Fields
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<int>.Octant octant, HitTestContext? context, ref BoundingSphere sphere, ref List<HitTestResult> result, ref bool isIntersect)
Parameters
octantStaticOctree<int>.OctantcontextHitTestContextsphereBoundingSphereresultList<HitTestResult>isIntersectbool
Returns
GetBoundingBoxFromItem(ref int)
Gets the bounding box from item.
protected override BoundingBox GetBoundingBoxFromItem(ref int item)
Parameters
itemintThe item.
Returns
GetMaxBound()
Gets the maximum bound.
protected override BoundingBox GetMaxBound()
Returns
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
contextHitTestContextThe context.
modelobjectThe model.
geometryGeometry3DThe geometry.
modelMatrixMatrix4x4The model matrix.
hitsList<HitTestResult>The hits.
hitThicknessfloatThe hit thickness.
Returns
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
octantStaticOctree<int>.OctantcontextHitTestContextmodelobjectgeometryGeometry3DmodelMatrixMatrix4x4rayModelRayreturnMultipleboolhitsList<HitTestResult>isIntersectboolhitThicknessfloat
Returns
IsContains(ref BoundingBox, BoundingBox, ref int)
protected override bool IsContains(ref BoundingBox source, BoundingBox target, ref int obj)
Parameters
sourceBoundingBoxtargetBoundingBoxobjint