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 |
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] |
An array of knot values in U direction. |
|
|
VKnots [out] |
An array of knot values in V direction. |
|
|
UClosed [out] |
Specifies whether the nurbs surface is closed in U direction. |
|
|
VClosed [out] |
Specifies whether the nurbs surface is closed in V direction. |
|
|
UDegree [out] |
Degree of the nurbs surface in U direction. |
|
|
VDegree [out] |
Degree of the nurbs surface in V direction. |
|
|
UParameterization [out] |
The parameterization factor of the nurbs surface in U direction. |
|
|
VParameterization [out] |
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)
Autodesk Softimage v7.5