GetUVFromNormalizedUV2 (NurbsSurface) *
Description
Returns the UV value equivalent to the input normalized UV values. The data is returned in a 1-dimensional array and is ordered the same as for the NurbsSurface.GetUVFromNormalizedUV method output arguments.
Note: This method must be used with scripting languages that don't support arguments passed by reference such as JScript and PerlScript. For more information on getting output arguments, see About Output Argument Arrays.
Scripting Syntax
NurbsSurface.GetUVFromNormalizedUV2( UValueNormalized, VValueNormalized )
C# Syntax
Object NurbsSurface.GetUVFromNormalizedUV2( Double in_dUValueNormalized, Double in_dVValueNormalized );Parameters
|
Parameter |
Type |
Description |
|
UValueNormalized |
The normalized UValue(0.0 to 1.0) from which we want the actual U Value. |
|
|
VValueNormalized |
The normalized VValue(0.0 to 1.0) from which we want the actual V Value. |
Return Value
Array of UV values ordered as UValue, VValue.
Examples
JScript Example
/* JScript example : shows how to retrieve the equivalent of the normalized UV values: .5, .5; from NurbsSurface.GetUVFromNormalizedUV2 */ 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).GetUVFromNormalizedUV2( .5, .5 )); var args = vbArgs.toArray(); // get the U value LogMessage("U value: " + args[0] ); // get the V value LogMessage("V value: " + args[1] );
Autodesk Softimage v7.5