b2dMeshVertCount

Number of vertices in a loaded mesh.

2D Overlay

Parameters & Returns

Parameters

handle Int

Returns

Int

Quick Summary

Number of vertices in a loaded mesh.

Technical Exegesis...

Returns the vertex count of a mesh loaded with b2dLoadMesh (0 for an invalid handle). Size your position arrays to this and use it as the loop bound when pulling vertices with b2dMeshCopyVertsX/Y/Z.

Example

Example.bam
Local nv:Int = b2dMeshVertCount(mesh)