getMeshIndexCount.lua 613 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the number of vertex indices in a mesh.',
  3. description = [[
  4. Returns the number of vertex indices in a mesh. Vertex indices allow for vertices to be reused
  5. when defining triangles.
  6. ]],
  7. arguments = {
  8. mesh = {
  9. type = 'number',
  10. description = 'The index of a mesh.'
  11. }
  12. },
  13. returns = {
  14. count = {
  15. type = 'number',
  16. description = 'The number of vertex indices in the mesh.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = { 'mesh' },
  22. returns = { 'count' }
  23. }
  24. },
  25. notes = 'This may return zero if the mesh does not use indices.'
  26. }