[x1 y1 z1 cx1 cy1 cz1 cx2 cy2 cz2 x2 y2 z2]
[x1 y1 cx1 cy1 cx2 cy2 x2 y2]
Draws a Bezier curve on the screen. These curves are defined by a series of anchor and control points. The first two parameters specify the first anchor point and the last two parameters specify the other anchor point. The middle parameters specify the control points which define the shape of the curve.
[detail]
Sets the resolution at which Beziers display. The default value is 20. This function is only useful when using the :p3d or :opengl renderer as the default (:java2d) renderer does not use this information.
[a b c d t]
Evaluates the Bezier at point t for points a, b, c, d. The parameter t varies between 0 and 1, a and d are points on the curve, and b and c are the control points. This can be done once with the x coordinates and a second time with the y coordinates to get the location of a bezier curve at t.
[a b c d t]
Calculates the tangent of a point on a Bezier curve. (See http://en.wikipedia.org/wiki/Tangent)
[x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4]
[x1 y1 x2 y2 x3 y3 x4 y4]
Draws a curved line on the screen. The first and second parameters specify the beginning control point and the last two parameters specify the ending control point. The middle parameters specify the start and stop of the curve. Longer curves can be created by putting a series of curve fns together or using curve-vertex. An additional fn called curve-tightness provides control for the visual quality of the curve. The curve fn is an implementation of Catmull-Rom splines.
[detail]
Sets the resolution at which curves display. The default value is 20. This function is only useful when using the :p3d or :opengl renderer as the default (:java2d) renderer does not use this information.
[a b c d t]
Evalutes the curve at point t for points a, b, c, d. The parameter t varies between 0 and 1, a and d are points on the curve, and b c and are the control points. This can be done once with the x coordinates and a second time with the y coordinates to get the location of a curve at t.
[a b c d t]
Calculates the tangent of a point on a curve. See: http://en.wikipedia.org/wiki/Tangent
[ti]
Modifies the quality of forms created with curve and curve-vertex. The parameter squishy determines how the curve fits to the vertex points. The value 0.0 is the default value for squishy (this value defines the curves to be Catmull-Rom splines) and the value 1.0 connects all the points with straight lines. Values within the range -5.0 and 5.0 will deform the curves but will leave them recognizable and as values increase in magnitude, they will continue to deform.