Curve:render
EditReturns a list of points on the Curve. The number of points can be specified to get a more or less detailed representation, and it is also possible to render a subsection of the Curve.
t = Curve:render(n, t1, t2)
Arguments
Name | Type | Default | Description |
n | number | 32 | The number of points to use. |
t1 | number | 0 | How far along the curve to start rendering. |
t2 | number | 1 | How far along the curve to stop rendering. |
Returns
Name | Type | Description |
t | table | A (flat) table of 3D points along the curve. |
Notes
This function will always return 2 points if the Curve is a line with only 2 control points.