getVertexMap.lua 904 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. return {
  2. summary = 'Get the current vertex map of the Mesh.',
  3. description = [[
  4. Returns the current vertex map for the Mesh. The vertex map is a list of indices in the Mesh,
  5. allowing the reordering or reuse of vertices.
  6. ]],
  7. arguments = {
  8. t = {
  9. type = 'table',
  10. description = 'The table to fill with the vertex map.'
  11. },
  12. blob = {
  13. type = 'Blob',
  14. description = [[
  15. The Blob to fill with the vertex map data. It must be big enough to hold all of the
  16. indices.
  17. ]]
  18. }
  19. },
  20. returns = {
  21. map = {
  22. type = 'table',
  23. description = 'The list of indices in the vertex map, or `nil` if no vertex map is set.'
  24. }
  25. },
  26. variants = {
  27. {
  28. arguments = {},
  29. returns = { 'map' }
  30. },
  31. {
  32. arguments = { 't' },
  33. returns = { 'map' }
  34. },
  35. {
  36. arguments = { 'blob' },
  37. returns = {}
  38. }
  39. }
  40. }