ImprintedPointsCollection

A collection of points.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Create a rectangle with some imprinted points defined in a table

imprintedPoints = {}
imprintedPoints[1] = cf.Point(1, 1, 0)
imprintedPoints[2] = cf.Point(0.25, 0.75, 0.3)
imprintedPoints[3] = cf.Point(0.75, 0.25, -1)

rect = project.Geometry:AddRectangle(cf.Point(0, 0, 0), 2, 2)
imprinted = project.Geometry:ImprintPoints(rect, imprintedPoints)

    -- Use the collection to count the number of points and modify the last one

pointCount = #imprinted.Points
imprinted.Points[pointCount].U = 0

Usage locations (collections)

The following objects contain the ImprintedPointsCollection collection:

Property List

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

Method List

Add (point Coordinate)
Add a point to imprint.
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 list of imprinted points 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 to imprint.
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 list of imprinted points 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.