NurbsControlPoint

A weighted point used for controlling a NURB surface.

Example

application = cf.Application.GetInstance()
project = application:NewProject()

    -- Create a NURBS surface with 2 rows and 3 columns.

pointsTable = 
    {{cf.Point(0,0,0), cf.Point(-1,2,0), cf.Point(0,4,0)},
     {cf.Point(2,1,0), cf.Point(1,2,0) , cf.Point(2,4,0)}}     
weightsTable = 
    {{1, 1, "2-1"},
     {1, 5, "1*1"}}     
nurbs = project.Contents.Geometry:AddNurbsSurface(pointsTable, weightsTable)

    -- Get a handle to the first point

firstPoint = nurbs.ControlPoints:Get(1, 1)

Inheritance

The NurbsControlPoint object is derived from the CompositeValue object.

Usage locations

The NurbsControlPoint object can be accessed from the following locations:

Property List

Position
The position of the point. (Read/Write LocalCoordinate)
Weight
The weight associated with the point. (Read/Write ParametricExpression)

Property Details

Position
The position of the point.
Type
LocalCoordinate
Access
Read/Write
Weight
The weight associated with the point.
Type
ParametricExpression
Access
Read/Write