ConstrainedSurfacePoint
A point used to define a constrained surface.
Example
application = cf.Application.GetInstance() project = application:NewProject() -- Create the tables for the surface values points = {} normals = {} uvSurfaceParams = {} -- Initialise the surface values for v = 0, 2 do for u = 1, 5 do points[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) uvSurfaceParams[u+v*5] = cf.UVPoint((u-1)/4, v) end end -- Create the constrained surface surface = project.Contents.Geometry:AddConstrainedSurface(points, normals, uvSurfaceParams) -- Modify the first point surface.Points[1].Position.U = 0.4
Inheritance
The ConstrainedSurfacePoint object is derived from the CompositeValue object.
Usage locations
The ConstrainedSurfacePoint object can be accessed from the following locations:
- Methods
- ConstrainedSurfacePointList object has method Append().
- ConstrainedSurfacePointList object has method Get(number).
Property List
- Normal
- The normal direction of the point. (Read/Write LocalInternalCoordinate)
- Position
- The position of the point. (Read/Write LocalInternalCoordinate)
- Surface
- The expression for the surface U' and V' coordinate of the point. (Read/Write SurfaceCoordinate)
Property Details
- Normal
- The normal direction of the point.
- Type
- LocalInternalCoordinate
- Access
- Read/Write
- Position
- The position of the point.
- Type
- LocalInternalCoordinate
- Access
- Read/Write
- Surface
- The expression for the surface U' and V' coordinate of the point.
- Type
- SurfaceCoordinate
- Access
- Read/Write