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

Public Member Functions

 VertexArray ()
 
None Insert (Vertex &v)
 
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.

# Python:
import VertexArray
vertexArray = VertexArray.VertexArray()
if vertexArray: # Will be False
pass
vertexArray.Insert( someVertex )
if vertexArray: # Will be True
pass
VertexArray()
default ctor

Constructor & Destructor Documentation

◆ VertexArray()

VertexArray::VertexArray ( )

default ctor

Member Function Documentation

◆ GetCount()

int VertexArray::GetCount ( )

get the number of elements in the array

Returns
the number of elements in the array

◆ GetVertexAtIndex()

Vertex * VertexArray::GetVertexAtIndex ( int  index)

get the vertex at the given index in the array

Parameters
indexthe index of the vertex to retrieve
Returns
Vertex * to the vertex at the given index

◆ Insert()

None VertexArray::Insert ( Vertex v)

insert the given vertex at the end of the array

Parameters
vvertex to insert

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