getVertexCount.lua 624 B

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