BezierCurvePointCollection
A collection of four Bezier curve point coordinates. The order of points is: {startPoint, startTangent, endTangent, endPoint}.
Example
app = cf.GetApplication() project = app:NewProject() -- Define Point coordinates to create a bezier curve startPoint = cf.Point(1, 0, 0) endPoint = cf.Point(0, 1, 0) startTangent = cf.Point(0.5, 0.5, 0) endTangent = cf.Point(-0.5, 0.5, 0) bezier = project.Geometry:AddBezierCurve(startPoint, startTangent, endTangent, endPoint) -- Use the collection to access the points startPoint = bezier.Points[1] startTangent = bezier.Points[2] endTangent = bezier.Points[3] endPoint = bezier.Points[4]
Usage locations (collections)
The following objects contain the BezierCurvePointCollection collection:
Property List
Method List
- Item (index number)
- Returns the LocalCoordinates at the given index. (Returns a LocalCoordinates object.)
Index List
- [number]
- Returns the LocalCoordinates at the given index in the collection. (Read LocalCoordinates)
Property Details
- Count
- The number of LocalCoordinates items in the collection.
- Type
- number
- Access
- Read only
Method Details
- Item (index number)
- Returns the LocalCoordinates at the given index.
- Input Parameters
- index(number)
- The index of the LocalCoordinates.
- Return
- LocalCoordinates
- The LocalCoordinates at the given index.