sofa::helper::io::Mesh Class Reference

#include <Mesh.h>

Inheritance diagram for sofa::helper::io::Mesh:

Inheritance graph
[legend]
Collaboration diagram for sofa::helper::io::Mesh:

Collaboration graph
[legend]

Data Structures

class  Material

Public Types

typedef Factory< std::string,
Mesh, std::string > 
FactoryMesh

Public Member Functions

vector< Vector3 > & getVertices ()
vector< Vector3 > & getTexCoords ()
vector< Vector3 > & getNormals ()
vector< vector< vector< int > > > & getFacets ()
const Material & getMaterial ()
std::string & getTextureName ()

Static Public Member Functions

static Mesh * Create (std::string filename)
template<class Object >
static void create (Object *&obj, std::string arg)

Protected Attributes

vector< Vector3 > vertices
vector< Vector3 > texCoords
vector< Vector3 > normals
vector< vector< vector< int > > > facets
Material material
std::string textureName

Detailed Description

Definition at line 48 of file Mesh.h.


Member Typedef Documentation

typedef Factory<std::string, Mesh, std::string> sofa::helper::io::Mesh::FactoryMesh

Definition at line 128 of file Mesh.h.


Member Function Documentation

template<class Object >
static void sofa::helper::io::Mesh::create ( Object *&  obj,
std::string  arg 
) [inline, static]

Definition at line 135 of file Mesh.h.

Mesh * sofa::helper::io::Mesh::Create ( std::string  filename  )  [static]

vector< vector < vector <int> > >& sofa::helper::io::Mesh::getFacets (  )  [inline]

const Material& sofa::helper::io::Mesh::getMaterial (  )  [inline]

Definition at line 123 of file Mesh.h.

References material.

Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().

vector<Vector3>& sofa::helper::io::Mesh::getNormals (  )  [inline]

Definition at line 117 of file Mesh.h.

References normals.

Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().

vector<Vector3>& sofa::helper::io::Mesh::getTexCoords (  )  [inline]

Definition at line 116 of file Mesh.h.

References texCoords.

Referenced by sofa::component::visualmodel::VisualModelImpl::setMesh().

std::string& sofa::helper::io::Mesh::getTextureName (  )  [inline]

Definition at line 125 of file Mesh.h.

References textureName.

vector<Vector3>& sofa::helper::io::Mesh::getVertices (  )  [inline]


Field Documentation

Definition at line 106 of file Mesh.h.

Referenced by getMaterial(), and sofa::helper::io::MeshOBJ::readOBJ().

std::string sofa::helper::io::Mesh::textureName [protected]

Definition at line 108 of file Mesh.h.

Referenced by getTextureName().


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

Generated on Sun Nov 23 04:24:19 2008 for Sofa by  doxygen 1.5.7.1