G

Get (NurbsCurve) *

Description

Returns a complete data description of the Nurbs Curve.

Note: This method uses output arguments. C# and some scripting languages (such as JScript and PerlScript) don't support arguments passed by reference. However, there is a alternate version of this method which is considered safe to use with C#, JScript and PerlScript: NurbsCurve.Get2.

Scripting Syntax

NurbsCurve.Get( [NurbsFormat], ControlPoints, [Knots], [Closed], [Degree], Parameterization )

C# Syntax

NurbsCurve.Get( siNurbsFormat in_eNurbsFormat, Object& out_vsaControlPoints, Object& out_vdKnots, Object& out_vbClosed, Object& out_vlDegree, Object& out_veParam );

Parameters

Parameter

Type

Description

NurbsFormat

siNurbsFormat

Specifies how the data is formatted.

Default Value: siSINurbs

ControlPoints [out]

2D Array

The control points are stored in a 2 dimensional array. The array is a 4 * Number of U ControlPoints

Knots [out]

Array of Doubles

An array of knot values.

Closed [out]

Boolean

Specifies whether the nurbs curve is closed .

Degree [out]

Long

Degree of the nurbs curves.

Parameterization [out]

siKnotParameterization

The parameterization factor of the nurbs curve.

Examples

VBScript Example

Dim lDegree, bClosed, eParameterization, aControlVertex, aKnots
set oRoot = application.ActiveProject.ActiveScene.Root
set oSpiral = oRoot.AddGeometry( "Arc", "NurbsCurve" )

oSpiral.ActivePrimitive.Geometry.Curves(0).Get siSINurbs, aControlVertex, aKnots, _
   bClosed, lDegree, eParameterization

' Create new nurbs curve list from arc data.
set oNurbsCurveList = oRoot.AddNurbsCurve( aControlVertex, aKnots, bClosed, _
   lDegree, eParameterization, siSINurbs )


Autodesk Softimage v7.5