// get accessor Int32 rtn = Sample.Index; |
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 |