<curve>
Property Examples
The following examples illustrate use of the <curve>
tag properties.
Property Example: Attributes as properties - all curves
The general <curve>
attributes shown above are also available as properties.
Property Example: Attributes as properties - bezier curves
The bezier <curve>
attributes shown above are also available as properties.
Property Example: Attributes as properties - parametric curves
The parametric <curve>
attributes shown above are also available as properties.
Property Example: numDimensions
The numDimensions
property renders the number of dimensions of the <curve>
.
Property Example: throughPoints
The throughPoints
property stores the specified
through points of the <curve>
in an array. Individual
through points and through point coordinates can be accessed using array notation.
Property Example: vectorControlDirections
The vectorControlDirections
property stores the specified control
directions of the bezier curve <controlVectors>
in an array. Individual
control vector directions at an indexed through point can be accessed using array notation.
Property Example: hiddenControls
The hiddenControls
property stores an array of boolean values that are true
if
the control vectors at the indexed through point are hidden from the user
using the hide
attribute. The status at an individual through point can be rendered using array notation.
Property Example: controlVectors
The controlVectors
property stores the computed control vectors of a bezier
curve in an array. Individual control control vectors and displacements at
an indexed through point can be accessed using array notation.
Property Example: controlPoints
The controlPoints
property stores an array of control points - points
at each end of the bezier control handles.
Property Example: numXCriticalPoints, numYCriticalPoints
Property Example: xCriticalPoints, yCriticalPoints
Property Example: numCurvatureChangePoints
The numCurvatureChangePoints
property returns the number of inflection points found when computing the curve.
Property Example: curvatureChangePoints
The curvatureChangePoints
property stores the inflection points
found when computing the curve in an array.