In file include/csgeom/poly3d.h:

class csPoly3D

The following class represents a general 3D polygon

Inheritance:


Public Methods

void AddVertex(const csVector3& v)
Add a vertex (3D) to the polygon
void AddVertex(float x, float y, float z)
Add a vertex (3D) to the polygon
csPoly3D(int start_size = 10)
Make a new empty polygon
csPoly3D(csPoly3D& copy)
Copy constructor.
csVector3* GetFirst()
Get the first vertex
csVector3* GetLast()
Get the last vertex
int GetNumVertices()
Get the number of vertices
csVector3* GetVertex(int i)
Get the specified vertex
csVector3* GetVertices()
Get the array with all vertices
void MakeEmpty()
Initialize the polygon to empty
void MakeRoom(int new_max)
Make room for at least the specified number of vertices
csVector3& operator[] (int i)
Get the specified vertex
void SetNumVertices(int n)
Set the number of vertices
void SetVertices(csVector3 *v, int num)
Set all polygon vertices at once
virtual ~csPoly3D()
Destructor.

Protected Fields

int max_vertices
int num_vertices
csVector3* vertices
The 3D vertices.

Documentation

The following class represents a general 3D polygon
csVector3* vertices
The 3D vertices.

int num_vertices

int max_vertices

csPoly3D(int start_size = 10)
Make a new empty polygon

csPoly3D(csPoly3D& copy)
Copy constructor.

virtual ~csPoly3D()
Destructor.

void MakeEmpty()
Initialize the polygon to empty

int GetNumVertices()
Get the number of vertices

csVector3* GetVertices()
Get the array with all vertices

csVector3* GetVertex(int i)
Get the specified vertex

csVector3& operator[] (int i)
Get the specified vertex

csVector3* GetFirst()
Get the first vertex

csVector3* GetLast()
Get the last vertex

void MakeRoom(int new_max)
Make room for at least the specified number of vertices

void SetNumVertices(int n)
Set the number of vertices

void AddVertex(const csVector3& v)
Add a vertex (3D) to the polygon

void AddVertex(float x, float y, float z)
Add a vertex (3D) to the polygon

void SetVertices(csVector3 *v, int num)
Set all polygon vertices at once


Direct child classes:
csVector3Array

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