GetIndexFromUVSamplingCoordinate (NurbsSampleCollection) *
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 |
U value of the NurbsSample for which we want the index. |
|
|
V |
V value of the NurbsSample for which we want the index. |
|
|
NurbsSurfaceIndex |
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
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: " & aUVSamplingCoordinateAutodesk Softimage v7.5