GetNormalizedUVFromUV2 (NurbsSurface) *

Description

Returns the Normalized equivalent of UV values. The data is returned in a 1-dimensional array and is ordered the same as for the NurbsSurface.GetNormalizedUVFromUV method output arguments.

Note: This method must be used with scripting languages that don't support arguments passed by reference such as JScript. For more information on getting output arguments, see About Output Argument Arrays.

Scripting Syntax

NurbsSurface.GetNormalizedUVFromUV2( UValue, VValue )

C# Syntax

Object NurbsSurface.GetNormalizedUVFromUV2( Double in_dUValue, Double in_dVValue );

Parameters

Parameter

Type

Description

UValue

Double

The UValue from which we want the normalized UValue.

VValue

Double

The VValue from which we want the normalized VValue.

Return Value

Array of normalized values ordered as UValueNormalized, VValueNormalized.

Examples

JScript Example

/*
   JScript example : shows how to retrieve the normalized equivalent of the 
   UV values: 3.0, 4.0; from NurbsSurface.GetNormalizedUVFromUV2
*/
var oRoot = Application.ActiveProject.ActiveScene.Root;
var oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" );

// convert VB array to JScript array
var vbArgs = new VBArray(oSphere.ActivePrimitive.Geometry.Surfaces(0).GetNormalizedUVFromUV2( 3.0, 4.0 ));
var args = vbArgs.toArray();

// gethttp://www.live365.com/stations/50884 the U normalized value
LogMessage("U normalized value: " + args[0] );

// get the V normalized value
LogMessage("V normalized value: " + args[1] );


SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index