AddNurbsCurve (X3DObject)

Description

Creates a NurbsCurveList object composed of one curve. This is typically used for creating nurbs curves from a set of geometry data.

Scripting Syntax

X3DObject.AddNurbsCurve( ControlPoints, [Knots], [Closed], [Degree], [Parameterization], [NurbsFormat], [Name] )

C# Syntax

X3DObject X3DObject.AddNurbsCurve( Object in_ControlPoints, Object in_Knots, Boolean in_bClosed, Int32 in_lDegree, siKnotParameterization in_Parameterization, siNurbsFormat in_eNurbsFormat, String in_bstrName );

Parameters

Parameter

Type

Description

ControlPoints

1D or 2D Array

The control points used for creating the nurbs surface. 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

Boolean

Specifies whether the nurbs surface is closed or not in U direction.

Default Value: False

Degree

Long

Degree of the nurbs surface in U direction.

Default Value: 3

Parameterization

siKnotParameterization

The parameterization factor of the nurbs surface in U direction.

Default Value: siNonUniformParameterization

NurbsFormat

siNurbsFormat

Specifies how the data is formatted.

Default Value: siSINurbs

Name

String

name of object

Return Value

This method returns the X3DObject parent of this new geometry, the new X3DObject is parented under this X3DObject.

See Also

NurbsCurveList

Examples

• See X3DObject.AddNurbsCurve.1.vbs



Autodesk Softimage 2011