Tesla Graphics Engine Documentation (January 2012)
GetPrimitive Method (primitiveIndex, store)
TeslaTesla.SceneMeshDataGetPrimitive(Int32, array<Vector3>[]()[][])
Gets the vertex position for the primitive specified by its index in the mesh. Triangles return a list of 3 points, and lines of 2 points.
Declaration Syntax
C#
public void GetPrimitive(
	int primitiveIndex,
	Vector3[] store
)
Parameters
primitiveIndex (Int32)
Index of the primitive in the mesh
store (array<Vector3>[]()[][])
Array to store the primitive vertices in. For triangle lists/strips, must be size 3. For line lists/strips must be size 2.
Exceptions
Exception Condition
TeslaException Thrown if primitiveIndex is out of range or if indices are not set, but used

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