Get (NurbsSurface) *

Description

Returns a complete data description of the NurbsSurface.

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

Scripting Syntax

NurbsSurface.Get( [NurbsFormat], ControlPoints, [UKnots], [VKnots], [UClosed], [VClosed], [UDegree], [VDegree], [UParameterization], [VParameterization] )

C# Syntax

NurbsSurface.Get( siNurbsFormat in_eNurbsFormat, Object& out_pvsaUVControlPoints, Object& out_pvsaUKnots, Object& out_pvsaVKnots, Object& out_pvbUClosed, Object& out_pvbVClosed, Object& out_pvlUDegree, Object& out_pvlVDegree, Object& out_pveUParam, Object& out_pveVParam );

Parameters

Parameter

Type

Description

NurbsFormat

siNurbsFormat

Specifies how the data is formatted.

Default Value: siSINurbs

ControlPoints

3D Array

The control points are stored in a 3-dimensional array.

The array is 4 * Number V ControlPoints * Number U ControlPoints

UKnots [out]

Array of Doubles

An array of knot values in U direction.

VKnots [out]

Array of Doubles

An array of knot values in V direction.

UClosed [out]

Boolean

Specifies whether the nurbs surface is closed in U direction.

VClosed [out]

Boolean

Specifies whether the nurbs surface is closed in V direction.

UDegree [out]

Long

Degree of the nurbs surface in U direction.

VDegree [out]

Long

Degree of the nurbs surface in V direction.

UParameterization [out]

siKnotParameterization

The parameterization factor of the nurbs surface in U direction.

VParameterization [out]

siKnotParameterization

The parameterization factor of the nurbs surface in V direction.

Examples

VBScript Example

Dim lDegree(2), bClosed(2), eParameterization(2), aControlPoints, aKnots(2)

set oRoot = Application.activeproject.activescene.root

set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )

oSphere.ActivePrimitive.Geometry.Surfaces(0).Get _
   siSINurbs, _
   aControlPoints, _
   aKnots(siUDirection),aKnots(siVDirection) , _
   bClosed(siUDirection),bClosed(siVDirection), _
   lDegree(siUDirection),lDegree(siVDirection), _
   eParameterization(siUDirection),eParameterization(siVDirection)

' Create new nurbs surface list from arc data.
set oNurbsSurface = oRoot.AddNurbsSurface( _
   aControlPoints, _
   aKnots(siUDirection),aKnots(siVDirection), _
   bClosed(siUDirection),bClosed(siVDirection), _
   lDegree(siUDirection),lDegree(siVDirection), _
   eParameterization(siUDirection),eParameterization(siVDirection), _
   siSINurbs)


SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index