RemoveVertex

Category: Objects / Vertices
Since engine version: 1.0 OC

Description

Removes a vertex from the calling object.

Syntax

bool RemoveVertex(int index);

Parameter

index:
Index of the vertex to be removed, ranges from 0 to GetVertexNum.

Remark

Notice: with any vertex updated caused by stretching or rotation of the object (e.g. building or growth) the vertices will be reset to their original defined position unless a special vertex mode is selected.

Example

while(RemoveVertex()) ;
Removes all vertices from the calling object.
See also: AddVertex, GetVertex, GetVertexNum, InsertVertex, SetVertex
Sven2, 2003-05