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.
NurbsCurveList.Get( [NurbsFormat], Count, ControlPoints, [NbControlPoints], [Knots], [NbKnots], [Closed], [Degree], [Parameterization] ); |
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. |
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 |