Public Member Functions | Public Attributes
shapes::Mesh Class Reference

Definition of a triangle mesh. More...

#include <shapes.h>

Inheritance diagram for shapes::Mesh:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Mesh (void)
 Mesh (unsigned int vCount, unsigned int tCount)
virtual ~Mesh (void)

Public Attributes

double * normals
 The normal to each triangle; unit vector represented as (x,y,z); If missing from the mesh, these vectors are computed.
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 triangle mesh.

Definition at line 150 of file shapes.h.


Constructor & Destructor Documentation

shapes::Mesh::Mesh ( void  ) [inline]

Definition at line 153 of file shapes.h.

shapes::Mesh::Mesh ( unsigned int  vCount,
unsigned int  tCount 
) [inline]

Definition at line 163 of file shapes.h.

virtual shapes::Mesh::~Mesh ( void  ) [inline, virtual]

Definition at line 173 of file shapes.h.


Member Data Documentation

The normal to each triangle; unit vector represented as (x,y,z); If missing from the mesh, these vectors are computed.

Definition at line 199 of file shapes.h.

The number of triangles formed with the vertices.

Definition at line 191 of file shapes.h.

unsigned int* shapes::Mesh::triangles

The vertex indices for each triangle triangle k has vertices at index (3k, 3k+1, 3k+2) = (v1, v2, v3)

Definition at line 195 of file shapes.h.

The number of available vertices.

Definition at line 184 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 188 of file shapes.h.


The documentation for this class was generated from the following file:


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Thu Dec 12 2013 11:08:56