Click or drag to resize
AB4D logo

DXMultiMeshGeometry3DHitTest Method

Hit test the specified ray against this mesh and returns the closest hit result or null if no hit is found.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public DXRayHitTestResult HitTest(
	ref Ray localRay,
	DXHitTestContext hitTestContext,
	int startTriangleIndex,
	bool getOnlyNextHitTest
)

Parameters

localRay  Ray
ray transformed to local coordinate system
hitTestContext  DXHitTestContext
DXHitTestContext
startTriangleIndex  Int32
index of the triangle where the hit testing will begin - triangle indice index is get by multiplying this number by 3
getOnlyNextHitTest  Boolean
when true, then the next hit result is returned; when false all hit results are get and only the closest to the ray origin is returned.

Return Value

DXRayHitTestResult
DXRayHitTestResult when ray hits the mesh otherwise null is returned
See Also