ConstrainedSurfacePoint

A point used to define a constrained surface.

Example

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

    -- Create the tables for the surface values

points = {}
normals = {}
uSurfaceParams = {}
vSurfaceParams = {}

    -- 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)
        uSurfaceParams[u+v*5] = (u-1)/4
        vSurfaceParams[u+v*5] = v
    end
end

    -- Create the constrained surface

surface = project.Geometry:AddConstrainedSurface(points, normals, uSurfaceParams, vSurfaceParams)

    -- Modify the first point
    
surface.Points[1].PositionU = 0.4

Property List

NormalN
The normal N coordinate of the point. (Read/Write Expression)
NormalU
The normal U coordinate of the point. (Read/Write Expression)
NormalV
The normal V coordinate of the point. (Read/Write Expression)
PositionN
The position N coordinate of the point. (Read/Write Expression)
PositionU
The position U coordinate of the point. (Read/Write Expression)
PositionV
The position V coordinate of the point. (Read/Write Expression)
SurfaceU
The surface U' coordinate of the point. (Read/Write Expression)
SurfaceV
The surface V' coordinate of the point. (Read/Write Expression)

Property Details

NormalN
The normal N coordinate of the point.
Type
Expression
Access
Read/Write
NormalU
The normal U coordinate of the point.
Type
Expression
Access
Read/Write
NormalV
The normal V coordinate of the point.
Type
Expression
Access
Read/Write
PositionN
The position N coordinate of the point.
Type
Expression
Access
Read/Write
PositionU
The position U coordinate of the point.
Type
Expression
Access
Read/Write
PositionV
The position V coordinate of the point.
Type
Expression
Access
Read/Write
SurfaceU
The surface U' coordinate of the point.
Type
Expression
Access
Read/Write
SurfaceV
The surface V' coordinate of the point.
Type
Expression
Access
Read/Write