b3dPickedTriangle

Returns triangle index of pick hit point from last pick operation (-1 if sphere/box pick or no hit). Takes no parameters. Returns triangle index (Int) from g_lastPickResult.triangleIndex, or -1 if not polygon pick.

3D Graphics

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Returns triangle index of pick hit point from last pick operation (-1 if sphere/box pick or no hit). Takes no parameters. Returns triangle index (Int) from g_lastPickResult.triangleIndex, or -1 if not polygon pick.

Technical Exegesis...

Returns triangle index of pick hit point from last pick operation (-1 if sphere/box pick or no hit). Takes no parameters. Returns triangle index (Int) from g_lastPickResult.triangleIndex, or -1 if not polygon pick. Reads result from last b3dCameraPick, b3dEntityPick, or b3dLinePick call with pickMode=2 (polygon). Triangle index in mesh index buffer.

This function retrieves hit triangle.

Example

Example.bam
; No example implemented yet