FittedSplinePointCollection

A collection of points.

Example

app = cf.GetApplication()
project = app:NewProject()
spline = project.Geometry:AddFittedSpline({cf.Point(1,0,0), cf.Point(1,1,0), cf.Point(1,1,1)})

    -- Modify the last point in the fitted spline's collection of points

spline.Points[#spline.Points].U = 0

Usage locations (collections)

The following objects contain the FittedSplinePointCollection collection:

Property List

Count
The number of LocalCoordinates items in the collection. (Read only number)

Method List

Add (point Coordinate)
Add a point coordinate to the fitted spline.
Item (index number)
Returns the LocalCoordinates at the given index. (Returns a LocalCoordinates object.)
Modify (index number, point Coordinate)
Modify the point coordinate at the given index.
Remove (index number)
Remove a point from the fitted spline at the given index.
Set (points List of Point)
Replace the point coordinates with a list of points.

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

Add (point Coordinate)
Add a point coordinate to the fitted spline.
Input Parameters
point(Coordinate)
The point coordinate.
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.
Modify (index number, point Coordinate)
Modify the point coordinate at the given index.
Input Parameters
index(number)
The point index.
point(Coordinate)
The new point coordinate.
Remove (index number)
Remove a point from the fitted spline at the given index.
Input Parameters
index(number)
The point index.
Set (points List of Point)
Replace the point coordinates with a list of points.
Input Parameters
points(List of Point)
A table of points.