b3dVertexZ

Returns vertex Z position coordinate. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based). Returns Z coordinate as double or 0.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int
vertexIndex Int

Returns

Double

Quick Summary

Returns vertex Z position coordinate. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based). Returns Z coordinate as double or 0.

Technical Exegesis...

Returns vertex Z position coordinate. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), vertexIndex (vertex number, 0-based). Returns Z coordinate as double or 0.0 on error. Validates mesh exists, type is ENTITY_MESH, is surface-based, surface index valid, and vertex index valid. Returns surface->vertices[vertexIndex].position.z directly. Returns 0.0 if: invalid mesh, not surface-based, invalid surface, vertex index out of range.

Example

Example.bam
; No example implemented yet