b2dMeshFaceVert

Vertex index of a face's corner (0..3).

2D Overlay

Parameters & Returns

Parameters

handle Int
face Int
corner Int

Returns

Int

Quick Summary

Vertex index of a face's corner (0..3).

Technical Exegesis...

Returns the vertex index that corner (0..3) of the given face refers to - i.e. which entry in the b2dMeshCopyVertsX/Y/Z arrays holds that corner's position. Use it to look up the four projected corners when drawing a face. For a triangle, corner 3 repeats corner 2. Constant data - cache at load.

Example

Example.bam
Local a:Int = b2dMeshFaceVert(mesh, f, 0)   ; -> index into mvx/mvy/mvz
Local sxa:Double = sx[a]