Whether or not to automatically close the path.
The array of Curves.
Readonly
typeA Read-only string to check if this
object type.
Adds a lineCurve to close the path.
Generates the Frenet Frames
Expects a Integer
Optional
closed: booleanRequires a Curve definition in 3D space Used in geometries like TubeGeometry or ExtrudeGeometry.
Copies another Curve object to this instance.
Get total Curve arc length.
Returns a vector for a given position on the curve.
A position on the curve. Must be in the range [ 0, 1 ]
. Expects a Float
Optional
optionalTarget: TIf specified, the result will be copied into this Vector, otherwise a new Vector will be created. Default new T
.
Returns an array of points representing a sequence of curves
Optional
divisions: numberNumber of pieces to divide the curve into. Expects a Integer
. Default 12
The division
parameter defines the number of pieces each curve is divided into
However, for optimization and quality purposes, the actual sampling resolution for each curve depends on its type
For example, for a LineCurve, the returned number of points is always just 2.
Returns a unit vector tangent at t
A position on the curve. Must be in the range [ 0, 1 ]
. Expects a Float
Optional
optionalTarget: TIf specified, the result will be copied into this Vector, otherwise a new Vector will be created.
If the derived Curve does not implement its tangent derivation, two points a small delta apart will be used to find its gradient which seems to give a reasonable approximation.
Curved Path - a curve path is simply a array of connected curves, but retains the api of a curve.
Remarks
A CurvePath is simply an array of connected curves, but retains the api of a curve.
See