AddSpline Method |
Creates a quadratic or cubic NURBS (nonuniform rational B-spline) curve.
Signature
RetVal = object.AddSpline(PointsArray, StartTangent, EndTangent)
Object
ModelSpace Collection,
PaperSpace
Collection, Block
The object or objects this method applies to.
PointsArray
Variant (array of doubles); input-only
An array of 3D WCS coordinates defining the spline curve. At least
two points (six elements) are required for constructing a Spline
object. The array size must be in multiples of three.
StartTangent
Variant (three-element array of doubles);
input-only
A 3D vector specifying the tangency of the spline curve at the
first point.
EndTangent
Variant (three-element array of doubles);
input-only
A 3D vector specifying the tangency of the spline curve at the last
point.
RetVal
Spline object
The newly created Spline object.
Remarks
The StartTangent and EndTangent parameters specify the tangents at the two ends of the spline. By default, a spline is created open. The read-only Closed property indicates whether the spline is open or closed.
Comments? |