Mesh Class Reference

An interface represents a polygonal mesh. More...

#include <mesh.h>

Inheritance diagram for Mesh:

UniversalMesh

List of all members.

Public Member Functions

 Mesh ()
 An empty constructor.
virtual ~Mesh ()
 An empty destructor.
virtual int get_position_count () const =0
 Return the number of vertex positions.
virtual Point3 get_position (int position_index) const =0
 Return the vertex position with the given index.
virtual int get_normal_count () const =0
 Return the number of vertex normals.
virtual Vector3 get_normal (int normal_index) const =0
 Return the vertex normal with the given index.
virtual int get_face_count () const =0
 Return the number of faces.
virtual int get_face_vertex_count (int face_index) const =0
 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 =0
 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 =0
 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 =0
 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 =0
 Return normal of the vertex specified by vertex_index of the face specfied by face_index.


Detailed Description

An interface represents a polygonal mesh.

Constructor & Destructor Documentation

Mesh::Mesh (  ) 

An empty constructor.

virtual Mesh::~Mesh (  )  [virtual]

An empty destructor.


Member Function Documentation

virtual int Mesh::get_face_count (  )  const [pure virtual]

Return the number of faces.

Implemented in UniversalMesh.

virtual int Mesh::get_face_vertex_count ( int  face_index  )  const [pure virtual]

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

Implemented in UniversalMesh.

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

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

Implemented in UniversalMesh.

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

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

Implemented in UniversalMesh.

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

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

Implemented in UniversalMesh.

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

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

Implemented in UniversalMesh.

virtual Vector3 Mesh::get_normal ( int  normal_index  )  const [pure virtual]

Return the vertex normal with the given index.

Implemented in UniversalMesh.

virtual int Mesh::get_normal_count (  )  const [pure virtual]

Return the number of vertex normals.

Implemented in UniversalMesh.

virtual Point3 Mesh::get_position ( int  position_index  )  const [pure virtual]

Return the vertex position with the given index.

Implemented in UniversalMesh.

virtual int Mesh::get_position_count (  )  const [pure virtual]

Return the number of vertex positions.

Implemented in UniversalMesh.


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