class csPolyIndexed The following class represents a general polygon
| | AddVertex (int i) Add a vertex index to the polygon |
| | csPolyIndexed (csPolyIndexed& copy) Copy constructor. |
| | csPolyIndexed (int start_size = 10) Make a new empty polygon |
| | GetNumVertices () Get the number of vertices |
| | GetVertex (int i) Get the specified vertex index |
| | GetVertexIndices () Get the array with all vertex indices |
| | MakeEmpty () Initialize the polygon to empty |
| | MakeRoom (int new_max) Make room for at least the specified number of vertices |
| | operator[] (int i) Get the specified vertex index |
| | ~csPolyIndexed () Destructor. |
| | max_vertices |
| | num_vertices |
| | vertices_idx The vertex indices. |
The following class represents a general polygon. Vertices are indexed relative to some vertex array instead of directly represented in the polygon. Note that this polygon has no knowledge of the actual values of the vertices. It only keeps the indices. So it can actually be used both for 3D and 2D polygons.
int num_vertices
int max_vertices
csPolyIndexed(int start_size = 10)
csPolyIndexed(csPolyIndexed& copy)
virtual ~csPolyIndexed()
void MakeEmpty()
int GetNumVertices()
int* GetVertexIndices()
int GetVertex(int i)
int& operator[] (int i)
void MakeRoom(int new_max)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de