| Python Script Engine 8.3 GL Studio Editor Python Script API

Public Member Functions | List of all members
VertexArray Class Reference

## Public Member Functions
| VertexArray ()
void | Insert (Vertex &v)
unsigned int | GetCount ()
Vertex * | GetVertexAtIndex (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::VertexArray
VertexArray()
default ctor

## Constructor & Destructor Documentation

## ◆ VertexArray()

VertexArray::VertexArray | ( |  | ) |

default ctor

## Member Function Documentation

## ◆ GetCount()

unsigned 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

  index | the index of the vertex to retrieve

Returns
  Vertex * to the vertex at the given index

## ◆ Insert()

void VertexArray::Insert | ( | Vertex & | v | ) |

insert the given vertex at the end of the array

Parameters

  v | vertex to insert

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

- VertexArray.i