GetIndexArrayFrom UVSamplingCoordin ateArray (NurbsSampleCollec tion) *

Description

Returns an array of Sample indices corresponding to UV values.

Scripting Syntax

    NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray( UVArray )

C# Syntax

    Object NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray( Object, Object );

Parameters

Parameter | Type | Description
UVArray | Array of Long | An array of U V values e.g.:[U1,V1, U2, V2, U3, V3].

Return Value

Array

Examples

VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","NurbsSurface")
    set oSurface = oCube.ActivePrimitive.Geometry.Surfaces(0)
    set oSamples = oSurface.NurbsSamples
    aIndices = oSamples.GetIndexArrayFromUVSamplingCoordinateArray(Array(0,2,1,3))
    str = "The indices of Sample at UV(0,2) and UV(1,3) are:"
    for i = lbound(aIndices) to ubound(aIndices)
    str = str & " " & aIndices(i)
    next
    logmessage str

Autodesk Softimage v7.5