shapes::Mesh Class Reference
Definition of a mesh.
More...
#include <shapes.h>
List of all members.
Public Member Functions |
| Mesh (unsigned int vCount, unsigned int tCount) |
| Mesh (void) |
virtual | ~Mesh (void) |
Public Attributes |
double * | normals |
| the normal to each triangle unit vector represented as (x,y,z)
|
unsigned int | triangleCount |
| the number of triangles formed with the vertices
|
unsigned int * | triangles |
| the vertex indices for each triangle triangle k has vertices at index (3k, 3k+1, 3k+2) = (v1, v2, v3)
|
unsigned int | vertexCount |
| the number of available vertices
|
double * | vertices |
| the position for each vertex vertex k has values at index (3k, 3k+1, 3k+2) = (x,y,z)
|
Detailed Description
Definition of a mesh.
Definition at line 145 of file shapes.h.
Constructor & Destructor Documentation
shapes::Mesh::Mesh |
( |
void |
|
) |
[inline] |
shapes::Mesh::Mesh |
( |
unsigned int |
vCount, |
|
|
unsigned int |
tCount | |
|
) |
| | [inline] |
virtual shapes::Mesh::~Mesh |
( |
void |
|
) |
[inline, virtual] |
Member Data Documentation
the normal to each triangle unit vector represented as (x,y,z)
Definition at line 194 of file shapes.h.
the number of triangles formed with the vertices
Definition at line 186 of file shapes.h.
the vertex indices for each triangle triangle k has vertices at index (3k, 3k+1, 3k+2) = (v1, v2, v3)
Definition at line 190 of file shapes.h.
the number of available vertices
Definition at line 179 of file shapes.h.
the position for each vertex vertex k has values at index (3k, 3k+1, 3k+2) = (x,y,z)
Definition at line 183 of file shapes.h.
The documentation for this class was generated from the following file: