NurbsCurveList.Get
 
 
 

NurbsCurveList.Get operator

Description

Returns a complete data description of a Nurbs Curve list.

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: NurbsCurveList.Get2.

C# Syntax

NurbsCurveList.Get( siNurbsFormat in_eNurbsFormat, Object& out_vsalCount, Object& out_vsaControlPoints, Object& out_vsaNbControlPoints, Object& out_vsadKnots, Object& out_vsaNbKnots, Object& out_vsasClosed, Object& out_vsalDegree, Object& out_vsalParameterization );

Scripting Syntax

NurbsCurveList.Get( [NurbsFormat], Count, ControlPoints, [NbControlPoints], [Knots], [NbKnots], [Closed], [Degree], [Parameterization] );

Parameters

Parameter Type Description
NurbsFormat siNurbsFormat Specifies how the data is formatted.

Default Value: siSINurbs

Count Long Number of NurbsCurve in the NurbsCurveList
ControlPoints 2D Array The control points are stored in a 2 dimensional array. The array is a 4 x Number of U ControlPoints.
NbControlPoints Array of Long Specifies the number of ControlPoints per NurbsCurve.
Knots Array of Doubles An array of knot values.
NbKnots Array of Long Specifies the number of Knots per NurbsCurve.
Closed Array of Boolean 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.

Examples

VBScript Example

Dim lDegree, bClosed, eParameterization, aControlVertex, aKnots, lCount, aNbControlVertex
set oRoot = application.activeproject.activescene.root
set oSpiral = oRoot.AddGeometry( "Spiral", "NurbsCurve" )
FreezeObj oSpiral
set oArc = oRoot.AddGeometry( "Arc", "NurbsCurve" )
oArc.ActivePrimitive.Geometry.Get _
        siSINurbs, _
        lCount, _
        aControlVertex, _
        aNbControlVertex, _
        aKnots , _
        aNbKnots, _
        bClosed, _
        lDegree, _
        eParameterization
' add arc data to  nurbs curve list.
oSpiral.activeprimitive.geometry.Set _
        lCount, _
        aControlVertex, _
        aNbControlVertex, _
        aKnots, _
        aNbKnots, _
        bClosed, _
        lDegree, _
        eParameterization, _
        siSINurbs