Constructs a new Catmull-Rom curve.
Optional
points: AcGeVector3dLike[]An array of 3D points defining the curve.
Optional
closed: booleanWhether the curve is closed or not.
Optional
curveType: CatmullRomCurveTypeThe curve type.
Optional
tension: numberTension of the curve.
Protected
_boundingReadonly
isThis flag can be used for type testing.
Readonly
typeThe curve type identifier
When this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.
Whether the curve is closed or not.
The curve type.
End point of this curve.
Length of this curve (approximated).
An array of 3D points defining the curve.
Start point of this curve.
Tension of the curve.
Protected
calculateReturns a point on the curve.
A interpolation factor representing a position on the curve. Must be in the range [0,1]
.
Optional
optionalTarget: AcGePoint3dThe optional target vector the result is written to.
The position on the curve.
Get an array of points along the curve
Number of divisions to create
Array of points along the curve
Set the curve type
The curve type
Set the points defining the curve
Array of points
Transforms the curve by applying the input matrix.
Input transformation matrix
Return this curve
Return new shape translated by given vector. Translation vector may be also defined by a pair of numbers.
A curve representing a Catmull-Rom spline.