Curve:render

Returns 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

NameTypeDefaultDescription
nnumber32 The number of points to use.
t1number0 How far along the curve to start rendering.
t2number1 How far along the curve to stop rendering.

Returns

NameTypeDescription
ttable 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.

See also