## SampleCollection.IndexArray

### Description

Returns a 1-dimensional Array containing the indices of all samples in the collection. The index is relative to its Facet.

### C# Syntax

    // get accessor

    Object rtn = SampleCollection.IndexArray;

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")

    set oFacet = oCube.ActivePrimitive.Geometry.Facets(0)

    set oSamples = oFacet.Samples

    indexArray = oSamples.IndexArray

    for i = lbound(indexArray) to ubound(indexArray)

    	LogMessage "The index of this sample is: " & indexArray(i)

    next