setVertices.lua 1000 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. return {
  2. summary = 'Update multiple vertices in the Mesh.',
  3. description = 'Updates multiple vertices in the Mesh.',
  4. arguments = {
  5. vertices = {
  6. type = 'table',
  7. description = 'The new set of vertices.'
  8. },
  9. blob = {
  10. type = 'Blob',
  11. description = 'A Blob containing binary vertex data to upload (this is much more efficient).'
  12. },
  13. start = {
  14. type = 'number',
  15. default = '1',
  16. description = 'The index of the vertex to start replacing at.'
  17. },
  18. count = {
  19. type = 'number',
  20. default = 'nil',
  21. description = 'The number of vertices to replace. If nil, all vertices will be used.'
  22. }
  23. },
  24. returns = {},
  25. variants = {
  26. {
  27. arguments = { 'vertices', 'start', 'count' },
  28. returns = {}
  29. },
  30. {
  31. arguments = { 'blob', 'start', 'count' },
  32. returns = {}
  33. }
  34. },
  35. notes = [[
  36. The start index plus the number of vertices in the table should not exceed the maximum size of
  37. the Mesh.
  38. ]]
  39. }