getMeshVertex.lua 888 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. summary = 'Get the data for a single vertex in a mesh.',
  3. description = [[
  4. Returns the data for a single vertex in a mesh. The data returned depends on the vertex format
  5. of a mesh, which is given by `ModelData:getMeshVertexFormat`.
  6. ]],
  7. arguments = {
  8. mesh = {
  9. type = 'number',
  10. description = 'The index of a mesh to get the vertex from.'
  11. },
  12. vertex = {
  13. type = 'number',
  14. description = 'The index of a vertex in the mesh to retrieve.'
  15. }
  16. },
  17. returns = {
  18. ['...'] = {
  19. type = 'number',
  20. description = 'The data for all of the attributes of the vertex.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = { 'mesh', 'vertex' },
  26. returns = { '...' }
  27. }
  28. },
  29. related = {
  30. 'ModelData:getMeshVertexFormat',
  31. 'ModelData:getMeshVertexCount',
  32. 'ModelData:getMeshIndex',
  33. 'ModelData:getTriangles'
  34. }
  35. }