Tesla Graphics Engine Documentation (January 2012)
GetPrimitiveIndices Method (primitiveIndex)
TeslaTesla.SceneMeshDataGetPrimitiveIndices(Int32)
Given the primitive index in this mesh (e.g. the first, second, third triangle, and so on), return an index array of their vertex information. Supports all the PrimitiveTypes (so triangles will return 3 points and lines 2 points), as well as indexed/non-indexed vertex buffers. Note, if short indices are used they will be returned as Int32's.
Declaration Syntax
C#
public int[] GetPrimitiveIndices(
	int primitiveIndex
)
Parameters
primitiveIndex (Int32)
Primitive position in the mesh
Return Value
Index information for that primitive, null if index was out of bounds
Exceptions
Exception Condition
TeslaException Thrown if primitiveIndex is out of range or if indices are not set

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)