
Add a curve to the end of the curve list
NurbsCurve NurbsCurveList.AddCurve( Object in_vsaControlPoints, Object in_vsadKnots, Boolean in_bClosed, Int32 in_lDegree, siKnotParameterization in_eParam, siNurbsFormat in_eNurbsFormat ); |
oReturn = NurbsCurveList.AddCurve( ControlPoints, [Knots], [Closed], [Degree], [Parameterization], [NurbsFormat] ); |
| 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. |
| 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 |
Dim lDegree, bClosed, eParameterization, aControlVertex, aKnots
set oRoot = application.activeproject.activescene.root
set oSpiral = oRoot.AddGeometry( "Spiral", "NurbsCurve" )
set oArc = oRoot.AddGeometry( "Arc", "NurbsCurve" )
set oNurbsCurveList = oRoot.AddNurbsCurveList()
oSpiral.ActivePrimitive.Geometry.Curves(0).GetData _
aControlVertex, _
aKnots, _
bClosed, _
lDegree, _
eParameterization, _
siSINurbs
' add spiral data to nurbs curve list.
call oNurbsCurveList.activeprimitive.geometry.AddCurve( _
aControlVertex, _
aKnots, _
bClosed, _
lDegree, _
eParameterization, _
siSINurbs )
oArc.ActivePrimitive.Geometry.Curves(0).GetData _
aControlVertex, _
aKnots , _
bClosed, _
lDegree, _
eParameterization, _
siSINurbs
' add arc data to nurbs curve list.
call oNurbsCurveList.activeprimitive.geometry.AddCurve( _
aControlVertex, _
aKnots, _
bClosed, _
lDegree, _
eParameterization, _
siSINurbs )
|