Python Script Engine  7.1
GL Studio Editor Python Script API
VertexArray Class Reference

Public Member Functions

 VertexArray ()
void Insert (Vertex &v)
unsigned int GetCount ()
VertexGetVertexAtIndex (int index)

Detailed Description

Common editor interface Vertex array.

If the VertexArray instance is empty, it will return 'False' in comparison checks.

1 # Python:
2 import VertexArray
3 vertexArray = VertexArray.VertexArray()
4 if vertexArray: # Will be False
5  pass
6 vertexArray.Insert( someVertex )
7 if vertexArray: # Will be True
8  pass

Constructor & Destructor Documentation

VertexArray::VertexArray ( )

default ctor

Member Function Documentation

unsigned int VertexArray::GetCount ( )

get the number of elements in the array

the number of elements in the array
Vertex* VertexArray::GetVertexAtIndex ( int  index)

get the vertex at the given index in the array

indexthe index of the vertex to retrieve
Vertex * to the vertex at the given index
void VertexArray::Insert ( Vertex v)

insert the given vertex at the end of the array

vvertex to insert

The documentation for this class was generated from the following file: