render.lua 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. return {
  2. summary = 'Get a list of points on the Curve.',
  3. description = [[
  4. Returns a list of points on the Curve. The number of points can be specified to get a more or
  5. less detailed representation, and it is also possible to render a subsection of the Curve.
  6. ]],
  7. arguments = {
  8. n = {
  9. type = 'number',
  10. default = '32',
  11. description = 'The number of points to use.'
  12. },
  13. t1 = {
  14. type = 'number',
  15. default = '0',
  16. description = 'How far along the curve to start rendering.'
  17. },
  18. t2 = {
  19. type = 'number',
  20. default = '1',
  21. description = 'How far along the curve to stop rendering.'
  22. }
  23. },
  24. returns = {
  25. t = {
  26. type = '{number}',
  27. description = 'A (flat) table of 3D points along the curve.'
  28. }
  29. },
  30. variants = {
  31. {
  32. arguments = { 'n', 't1', 't2' },
  33. returns = { 't' }
  34. }
  35. },
  36. related = {
  37. 'Curve:evaluate',
  38. 'Curve:slice',
  39. 'Pass:points',
  40. 'Pass:line',
  41. 'Pass:mesh'
  42. }
  43. }