NurbsSurface.Get operator

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.

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 );

Scripting Syntax

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

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 Array of Doubles An array of knot values in U direction.
VKnots Array of Doubles An array of knot values in V direction.
UClosed Boolean Specifies whether the nurbs surface is closed in U direction.
VClosed Boolean Specifies whether the nurbs surface is closed in V direction.
UDegree Long Degree of the nurbs surface in U direction.
VDegree Long Degree of the nurbs surface in V direction.
UParameterization siKnotParameterization The parameterization factor of the nurbs surface in U direction.
VParameterization 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)