ModelData:getTriangleCount

Returns the number of triangles in the ModelData.

triangles = ModelData:getTriangleCount()

Arguments

None

Returns

NameTypeDescription
trianglesnumberThe number of triangles.

Notes

This is the number of unique triangles in the ModelData. A larger or smaller number of triangles may be rendered when the model is drawn because nodes and components of a model can be reused.

See also