b3dPickedSurface

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

3D Graphics

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

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

Technical Exegesis...

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

This function retrieves hit surface.

Example

Example.bam
; No example implemented yet