In file include/csgeom/poly3d.h:

class csVector3Array : public csPoly3D

This is actually the same class as csPoly3D

Inheritance:


Public Methods

int AddVertexSmart(float x, float y, float z)
Add a vertex but first check if it isn't already present in the array
int AddVertexSmart(const csVector3& v)
Add a vertex but first check if it isn't already present in the array

Inherited from csPoly3D:

Public Methods

void AddVertex(const csVector3& v)
void AddVertex(float x, float y, float z)
csVector3* GetFirst()
csVector3* GetLast()
int GetNumVertices()
csVector3* GetVertex(int i)
csVector3* GetVertices()
void MakeEmpty()
void MakeRoom(int new_max)
csVector3& operator[] (int i)
void SetNumVertices(int n)
void SetVertices(csVector3 *v, int num)

Protected Fields

int max_vertices
int num_vertices
csVector3* vertices

Documentation

This is actually the same class as csPoly3D. But it has been renamed to make it clear that it is for other uses. It also adds some functionality specific to that use. In particular this class is more used to hold an unordered collection of 3D vectors.
int AddVertexSmart(const csVector3& v)
Add a vertex but first check if it isn't already present in the array. Return the index that the vertex was added too.

int AddVertexSmart(float x, float y, float z)
Add a vertex but first check if it isn't already present in the array. Return the index that the vertex was added too.


Direct child classes:
csVertexArray

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de