Model:getTriangleCount

Returns the total number of triangles in the Model.

count = Model:getTriangleCount()

Arguments

None

Returns

NameTypeDescription
countnumber The total number of triangles in the Model.

Notes

This isn't always related to the length of the vertex buffer, since a mesh in the Model could be drawn by multiple nodes.

See also