GetIndexFromUVSa mplingCoordinate (NurbsSampleCollec tion) *

Description

Returns the index of the sample point at given a UV sampling coordinate value.

Scripting Syntax

    NurbsSampleCollection.GetIndexFromUVSamplingCoordinate( U, V, [NurbsSurfaceIndex] )

C# Syntax

    Int32 NurbsSampleCollection.GetIndexFromUVSamplingCoordinate( Int32, Int32, Object );

Parameters

Parameter | Type | Description
U | Long | U value of the NurbsSample for which we want the index.
V | Long | V value of the NurbsSample for which we want the index.
NurbsSurfaceIndex | Long | If you get the NurbsSampleCollection from NurbsSurface.NurbsSamples it will be implicit. If you get it from Geometry.Samples it will take the first surface by default.

Return Value

Long

Examples

VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","NurbsSurface")
    set oNurbsSamples = oCube.ActivePrimitive.Geometry.Surfaces(0).NurbsSamples
    aUVSamplingCoordinate = oNurbsSamples.GetIndexFromUVSamplingCoordinate( 0,2)
    logmessage "The index of the sample at UV(0,2) is: " & aUVSamplingCoordinate

Autodesk Softimage v7.5