#include <vpmesh.h>
Inheritance diagram for VPMesh:
Public Types | |
enum | MeshType { POINTS, LINES, LINE_STRIP, LINE_LOOP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, QUADS, QUAD_STRIP, POLYGON } |
Public Member Functions | |
VPMesh () | |
Creates an uninitialized mesh. | |
VPMesh (const VPMesh &mesh) | |
VPMesh & | operator= (const VPMesh &mesh) |
bool | DrawInstanceOGL () const |
Draws the mesh assuming that its MeshObject is optimized. | |
void | IncrementIndices (unsigned int increment) |
Returns the mesh type as OpenGL enum. | |
VPMesh (void) | |
Public Attributes | |
std::vector< unsigned int > | indexVec |
std::vector< unsigned int > | normIndVec |
VPMaterial | material |
MeshType | type |
Friends | |
std::ostream & | operator<< (std::ostream &output, MeshType mt) |
The mesh is the basic building block of an mesh object (VPMeshObject). It has a single material, and indexes to vertices that define faces according to a rule (on a triangle strip, for instance, the first 3 indexes from a face, and then each new index from a new face together with the last 2 indexes). A mesh degenerates to a single polygon if the mesh object has no pratical rule of formation.
Definition at line 27 of file vpmesh.h.
|
|
|
Creates an uninitialized mesh.
Definition at line 28 of file vpmesh.cpp. |
|
Definition at line 31 of file vpmesh.cpp. References indexVec, material, normIndVec, and type. |
|
Definition at line 28 of file vpmymesh.h. |
|
Draws the mesh assuming that its MeshObject is optimized.
Reimplemented from VPSceneNode. Definition at line 82 of file vpmesh.cpp. References VPMaterial::DrawOGL(), indexVec, and material. |
|
Returns the mesh type as OpenGL enum.
Definition at line 49 of file vpmesh.cpp. References indexVec. Referenced by VPMeshObject::MergeWith(). |
|
Definition at line 41 of file vpmesh.cpp. References indexVec, material, normIndVec, and type. |
|
|
|
Definition at line 57 of file vpmesh.h. Referenced by VPMeshObject::AddFace(), DrawInstanceOGL(), IncrementIndices(), VPMeshObject::MakeBox(), operator=(), and VPMesh(). |
|
Definition at line 59 of file vpmesh.h. Referenced by DrawInstanceOGL(), VPMeshObject::MakeBox(), operator=(), and VPMesh(). |
|
Definition at line 58 of file vpmesh.h. Referenced by VPMeshObject::AddFace(), operator=(), and VPMesh(). |
|
Definition at line 60 of file vpmesh.h. Referenced by VPMeshObject::AddFace(), VPMeshObject::MakeBox(), operator=(), and VPMesh(). |