NurbsSurface.GetNormalizedUVFromUV
 
 
 

NurbsSurface.GetNormalizedUVFromUV operator

Description

Returns the Normalized equivalent of UV values.

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.GetNormalizedUVFromUV2.

C# Syntax

NurbsSurface.GetNormalizedUVFromUV( Double in_dUValue, Double in_dVValue, Object& out_pdUValueNormalized, Object& out_pdVValueNormalized );

Scripting Syntax

NurbsSurface.GetNormalizedUVFromUV( UValue, VValue, UValueNormalized, VValueNormalized );

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.
UValueNormalized Double The normalized UValue(0.0 to 1.0).
VValueNormalized Double The normalized VValue(0.0 to 1.0).

Examples

VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )
oSphere.ActivePrimitive.Geometry.Surfaces(0).GetNormalizedUVFromUV _
        3.0, 4.0, UNormalized, VNormalized
LogMessage "The normalized equivalent of 3.0, 4.0 is U :" & _
        UNormalized & " V: " & VNormalized