getTriangleCount.lua 646 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the total number of triangles in the model.',
  3. description = [[
  4. Returns the total number of triangles in the model. This count includes meshes that are
  5. attached to multiple nodes, and the count corresponds to the triangles returned by
  6. `ModelData:getTriangles`.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. count = {
  11. type = 'number',
  12. description = 'The total number of triangles in the model.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'count' }
  19. }
  20. },
  21. related = {
  22. 'ModelData:getTriangles',
  23. 'ModelData:getVertexCount',
  24. 'Model:getTriangleCount'
  25. }
  26. }