## Sample.Index

### Description

Returns a Long representing the index of this sample relative to its Facet.

### C# Syntax

    // get accessor

    Int32 rtn = Sample.Index;

### Examples

#### JScript Example

    var oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface");

    var oFacet = oCube.ActivePrimitive.Geometry.Facets(0);

    var e = new Enumerator(oFacet.Samples);

    for ( ; ! e.atEnd(); e.moveNext() ) {

    	var oSample = e.item();

    	LogMessage( "The index of this sample is: " + oSample.Index )

    }

    // Expected result:

    //INFO : The index of this sample is: 0

    //INFO : The index of this sample is: 1

    //INFO : The index of this sample is: 2

    //INFO : The index of this sample is: 3