GET INDEXDATA This command will return the indice stored at the specified index.
Syntax
    Return Integer=GET INDEXDATA(Index Number)
Parameters
    Index Number
Integer This value is an integer number such as 1.
Returns
This value is an integer number such as 1.
Description
The indice data is formatted as groups of three, each group representing a polygon by referencing a vertex in the vertexdata.
Example Code
    rem Create simple plain and read its 4 vertices (plus any indices)

    if get maximum vertex shader version()>0

     make object plain 1,100,100

     lock vertexdata for limb 1,0

     vmax=get vertexdata vertex count()

     for v=0 to vmax-1

      x#=get vertexdata position x(v)

      y#=get vertexdata position y(v)

      z#=get vertexdata position z(v)

      nx#=get vertexdata normals x(v)

      ny#=get vertexdata normals y(v)

      nz#=get vertexdata normals z(v)

      diffuse=get vertexdata diffuse(v)

      u#=get vertexdata u(v)

      v#=get vertexdata v(v)

     next v

     imax=get vertexdata index count()

     for i=0 to imax-1

      vertindex=get indexdata(i)

     next i

     unlock vertexdata

    endif
See also
BASIC3D Commands Menu Index