X3DObject.AddNurbsCurveList

Description

This method is obsolete and has been replaced by X3DObject.AddNurbsCurveList2.

Creates an empty NurbsCurveList object and parents it under this object.

Scripting Syntax

oReturn = X3DObject.AddNurbsCurveList( Count, ControlPoints, [Knots], [Closed], [Degree], [Parameterization], [NurbsFormat], [Name] );

Return Value

X3DObject

Parameters

Parameter Type Description
Count 2D Array Number of control vertices, vknots per curve
ControlPoints 1D or 2D Array The control points used for creating the nurbs curve list. The control points can be stored in a 1-dimensional array or in a 2-dimensional matrix (Ux4) of x,y,z,w values. The 1-dimensional array should contain a sequence of x,y,z,w values (e.g. {Xo,Yo,Zo,...X(n-1),Y(n-1),Z(n-1),W(n-1)}).
Knots Array of Doubles An array of knot values.

Default Value: Knots derived from control points.

Closed Array of Booleans Specifies whether the nurbs curve is closed .

Default Value: False

Degree Array of Long Degree of the nurbs curves.

Default Value: 3

Parameterization Array of siKnotParameterization The parameterization factor of the nurbs curve.

Default Value: siNonUniformParameterization

NurbsFormat siNurbsFormat Specifies how the data is formatted.

Default Value: siSINurbs

Name String name of object

Examples

VBScript Example

NewScene , false
set oRoot = Application.ActiveProject.ActiveScene.Root
set oNurbsCurveList = oRoot.AddNurbsCurveList()

See Also

NurbsCurve