b3dCountVertices

Returns the number of vertices in a surface. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns vertex count (integer, 0 or more) or 0 on error.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int

Returns

Int

Quick Summary

Returns the number of vertices in a surface. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns vertex count (integer, 0 or more) or 0 on error.

Technical Exegesis...

Returns the number of vertices in a surface. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns vertex count (integer, 0 or more) or 0 on error. Validates mesh exists, type is ENTITY_MESH, is surface-based, and surface index valid. Returns surface->vertices.size() as integer. Returns 0 if: invalid handle, not a mesh, not surface-based, invalid surface index.

This function queries vertex array size for iteration or validation.

Example

Example.bam
; No example implemented yet