MarSTDv2004: CMesh Class Reference

MarSTDv2004

CMesh Class Reference

Inheritance diagram for CMesh:

Inheritance graph
[legend]
Collaboration diagram for CMesh:

Collaboration graph
[legend]
List of all members.

Detailed Description

A mesh is just a collection of polygons. Use it to store many polygons belonging to a particular group, so you can render them using a different matrix eg, or to paint them with the same material.

Definition at line 157 of file CPoly.h.

Public Member Functions

CPolyadd (CPoly *poly)
CPolyaddHead (CPoly *poly)
CPolyaddTail (CPoly *poly)
CPolyunlink (CPoly *poly)
void remove (CPoly *poly)
void clear ()
void copy (CMesh *mesh)
CMeshcopy ()
void triangulate (CMesh *mesh)
void transform (CMatrix *matrix)
void move (CMesh *mesh)
void paint (void *data)

Public Attributes

CPolypolyHead
 First polygon in DLL.
CPolypolyTail
 Last polygon in DLL.
int polyCount
 Number of polygons in DLL.
void * data
 Custom data field.

Member Function Documentation

CPoly* CMesh::add CPoly poly  ) 
 

Links polygon to tail.

See also:
add_tail()

CPoly* CMesh::addHead CPoly poly  ) 
 

Links polygon to head.

See also:
add_tail()

CPoly* CMesh::addTail CPoly poly  ) 
 

Links polygon to tail.

See also:
add_head()

CPoly* CMesh::unlink CPoly poly  ) 
 

Unlinks poygon from DLL.

void CMesh::remove CPoly poly  ) 
 

Unlinks polygon from DLL and frees memory.

void CMesh::clear  ) 
 

Clear polygon DLL.

void CMesh::transform CMatrix matrix  ) 
 

Transforms all vertices in mesh.

Parameters:
matrix Matrix that will be used to transform vertices.

void CMesh::move CMesh mesh  ) 
 

Moves contents of polygons DLL to another mesh.

void CMesh::paint void *  data  ) 
 

Assign a custom data reference to all polygon.

Parameters:
data Pointer to custom data structure.


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 21:59:42 2005 for MarSTDv2004 by  doxygen 1.4.1