`ConstrainedSurfacePointCollection`

A collection of points used to define a constrained surface.

## Example

app = cf.GetApplication() project = app:NewProject()-- Create the tables for the surface valuespoints = {} normals = {} uSurfaceParams = {} vSurfaceParams = {}-- Initialise the surface valuesforv = 0, 2doforu = 1, 5dopoints[u+v*5] = cf.Point(u, math.sin(((u-1)/4) * math.pi) + 0.5 - v, 0) normals[u+v*5] = cf.Point(0,0,1) uSurfaceParams[u+v*5] = (u-1)/4 vSurfaceParams[u+v*5] = vendend-- Create the constrained surfacesurface = project.Geometry:AddConstrainedSurface(points, normals, uSurfaceParams, vSurfaceParams)-- Modify the first point in the points collectionsurface.Points[1].PositionU = 0.4

## Usage locations (collections)

The following objects contain the ConstrainedSurfacePointCollection collection:

## Property List

## Method List

- Add (
`index`number,`position`Coordinate,`normal`Coordinate) - Add a point to the constrained surface definition.
- Item (
`index`number) - Returns the ConstrainedSurfacePoint at the given index. (Returns a ConstrainedSurfacePoint object.)
- Modify (
`index`number,`position`Coordinate,`normal`Coordinate,`surfaceU`Expression,`surfaceV`Expression) - Modify a point in the constrained surface definition.
- Modify (
`index`number,`position`Coordinate,`normal`Coordinate) - Modify a point in the constrained surface definition.
- Remove (
`index`number) - Remove a point from the constrained surface definition.

## Index List

- [number]
- Returns the ConstrainedSurfacePoint at the given index in the collection. (Read ConstrainedSurfacePoint)

## Property Details

- Count
- The number of ConstrainedSurfacePoint items in the collection.
- Type
- number
- Access
- Read only

## Method Details

- Add (
`index`number,`position`Coordinate,`normal`Coordinate) - Add a point to the constrained surface definition.
- Input Parameters
`index`(number)- The index to add the point at.
`position`(Coordinate)- The position of the point.
`normal`(Coordinate)- The normal direction of the point.

- Item (
`index`number) - Returns the ConstrainedSurfacePoint at the given index.
- Input Parameters
`index`(number)- The index of the ConstrainedSurfacePoint.

- Return
- ConstrainedSurfacePoint
- The ConstrainedSurfacePoint at the given index.

- Modify (
`index`number,`position`Coordinate,`normal`Coordinate,`surfaceU`Expression,`surfaceV`Expression) - Modify a point in the constrained surface definition.
- Input Parameters
`index`(number)- The index of the point to modify.
`position`(Coordinate)- The position of the point.
`normal`(Coordinate)- The normal direction of the point.
`surfaceU`(Expression)- The expression for the surface U' parameter coordinate of the point.
`surfaceV`(Expression)- The expression for the surface V' parameter coordinate of the point.

- Modify (
`index`number,`position`Coordinate,`normal`Coordinate) - Modify a point in the constrained surface definition.
- Input Parameters
`index`(number)- The index of the point to modify.
`position`(Coordinate)- The position of the point.
`normal`(Coordinate)- The normal direction of the point.

- Remove (
`index`number) - Remove a point from the constrained surface definition.
- Input Parameters
`index`(number)- The index of the point to remove.