Inheritance diagram for DzIndexList:
Methods | |
void | addIndex (Number idx) |
void | clear () |
Number | count () |
int | findIndex (Number idx) Boolean removeIndex(Number idx) |
Number | getIndex (Number i) |
Boolean | removeComponent (Number idx) |
void DzIndexList::addIndex | ( | Number | idx | ) |
Adds an index to the list.
idx | The index to append to the list. |
void DzIndexList::clear | ( | ) |
Removes all indices from the list and sets its count to zero.
Number DzIndexList::count | ( | ) |
int DzIndexList::findIndex | ( | Number | idx | ) |
Finds an index in the list.
idx | The index to find in the list. |
The | position of the index to return. |
This function is typically called when a component (e.g. vertex or face) has been removed from the list that the indices in this list reference. This function removes the given index from the list if it is found, and decrements all indices in the list greater than the given index in order to 'clean-up' the list of indices.
idx | The index of the item that needs to be removed. |