UniversalMesh Class Reference

An implementation of Mesh where the user is allowed to add positions, normals, and faces. More...

#include <universal_mesh.h>

Inheritance diagram for UniversalMesh:

Mesh

List of all members.

Public Member Functions

 UniversalMesh ()
 An empty constructor.
virtual ~UniversalMesh ()
 An empty destructor.
virtual int get_position_count () const
 Return the number of vertex positions.
virtual Point3 get_position (int position_index) const
 Return the vertex position with the given index.
virtual int get_normal_count () const
 Return the number of vertex normals.
virtual Vector3 get_normal (int normal_index) const
 Return the vertex normal with the given index.
virtual int get_face_count () const
 Return the number of faces.
virtual int get_face_vertex_count (int face_index) const
 Return the number of vertices in the face with the given index.
virtual int get_face_vertex_position_index (int face_index, int vertex_index) const
 Return the index of the position of the vertex specified by vertex_index of the face specfied by face_index.
virtual int get_face_vertex_normal_index (int face_index, int vertex_index) const
 Return the index of the normal of the vertex specified by vertex_index of the face specfied by face_index.
virtual Point3 get_face_vertex_position (int face_index, int vertex_index) const
 Return position of the vertex specified by vertex_index of the face specfied by face_index.
virtual Vector3 get_face_vertex_normal (int face_index, int vertex_index) const
 Return normal of the vertex specified by vertex_index of the face specfied by face_index.
virtual void append_position (const Point3 &position)
 Add a new position. The newly added position will have the largest index.
virtual void append_normal (const Vector3 &normal)
 Add a new normal. The newly added normal will ahve the largest index.
virtual void append_new_face ()
 Create a new face and add it to the collection of faces. The newly added face will have the largest index.
virtual void append_vertex_to_last_face (int position_index, int normal_index)
 Add a vertex, by specifying the indices of its position and normal, to the last face added via append_new_face().

Private Attributes

UniversalMeshImplementation * self


Detailed Description

An implementation of Mesh where the user is allowed to add positions, normals, and faces.

Constructor & Destructor Documentation

UniversalMesh::UniversalMesh (  ) 

An empty constructor.

virtual UniversalMesh::~UniversalMesh (  )  [virtual]

An empty destructor.


Member Function Documentation

virtual void UniversalMesh::append_new_face (  )  [virtual]

Create a new face and add it to the collection of faces. The newly added face will have the largest index.

virtual void UniversalMesh::append_normal ( const Vector3 normal  )  [virtual]

Add a new normal. The newly added normal will ahve the largest index.

virtual void UniversalMesh::append_position ( const Point3 position  )  [virtual]

Add a new position. The newly added position will have the largest index.

virtual void UniversalMesh::append_vertex_to_last_face ( int  position_index,
int  normal_index 
) [virtual]

Add a vertex, by specifying the indices of its position and normal, to the last face added via append_new_face().

virtual int UniversalMesh::get_face_count (  )  const [virtual]

Return the number of faces.

Implements Mesh.

virtual int UniversalMesh::get_face_vertex_count ( int  face_index  )  const [virtual]

Return the number of vertices in the face with the given index.

Implements Mesh.

virtual Vector3 UniversalMesh::get_face_vertex_normal ( int  face_index,
int  vertex_index 
) const [virtual]

Return normal of the vertex specified by vertex_index of the face specfied by face_index.

Implements Mesh.

virtual int UniversalMesh::get_face_vertex_normal_index ( int  face_index,
int  vertex_index 
) const [virtual]

Return the index of the normal of the vertex specified by vertex_index of the face specfied by face_index.

Implements Mesh.

virtual Point3 UniversalMesh::get_face_vertex_position ( int  face_index,
int  vertex_index 
) const [virtual]

Return position of the vertex specified by vertex_index of the face specfied by face_index.

Implements Mesh.

virtual int UniversalMesh::get_face_vertex_position_index ( int  face_index,
int  vertex_index 
) const [virtual]

Return the index of the position of the vertex specified by vertex_index of the face specfied by face_index.

Implements Mesh.

virtual Vector3 UniversalMesh::get_normal ( int  normal_index  )  const [virtual]

Return the vertex normal with the given index.

Implements Mesh.

virtual int UniversalMesh::get_normal_count (  )  const [virtual]

Return the number of vertex normals.

Implements Mesh.

virtual Point3 UniversalMesh::get_position ( int  position_index  )  const [virtual]

Return the vertex position with the given index.

Implements Mesh.

virtual int UniversalMesh::get_position_count (  )  const [virtual]

Return the number of vertex positions.

Implements Mesh.


Member Data Documentation

UniversalMeshImplementation* UniversalMesh::self [private]


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

Generated on Wed Aug 19 22:48:14 2009 for cglib by  doxygen 1.5.9