Click or drag to resize
AB4D logo

MeshOctTreeHitTest Method

HitTest method executes a ray hit test on this oct tree and returns a DXRayHitTestResult with the closest triangle in this oct tree that is hit by the specified ray. If not triangle is hit, null is returned. To get all hit results call method.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public DXRayHitTestResult HitTest(
	ref Ray ray,
	DXHitTestContext hitTestContext
)

Parameters

ray  Ray
ray
hitTestContext  DXHitTestContext
DXHitTestContext

Return Value

DXRayHitTestResult
DXRayHitTestResult in case of a hit or null of no triangle is hit
See Also