Engine
Mesh Class Reference

Public Member Functions

 Mesh ()
 
 Mesh (List3df vertices, List3di faces)
 
List3df GetVertices ()
 
List3di GetFaces ()
 
List3df GetFaceNormals ()
 
GLuint GetNumEdges ()
 
GLuint GetVAO ()
 
void CleanUp ()
 

Constructor & Destructor Documentation

Mesh::Mesh ( )

Builds a mesh with no vertices or edges

Mesh::Mesh ( List3df  vertices,
List3di  faces 
)

Builds a mesh with the provided vertices and edges

Parameters
verticesnx3 matrix of vertices for the mesh.
facesmx3 matrix of face indices for the mesh. Listed in counter-clockwise order

Member Function Documentation

void Mesh::CleanUp ( )

Removes the mesh from the GPU

List3df Mesh::GetFaceNormals ( )
Returns
A copy of the face normals in the mesh
List3di Mesh::GetFaces ( )
Returns
A copy of the faces in the mesh
GLuint Mesh::GetNumEdges ( )
Returns
The number of edges in the mesh
GLuint Mesh::GetVAO ( )
Returns
The vertex array buffer index for this mesh
List3df Mesh::GetVertices ( )
Returns
A copy of the vertices in the mesh

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