Sample.Index

Sample.Index operator

説明

Facetを基準とした、このサンプルのインデックスを表すLongを戻します。

C#構文

// get accessor

Int32 rtn = Sample.Index;

JScript の例

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