Category: Objects
/ Vertices
Since engine version: 1.0 OC
RemoveVertex
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.