SOFA API  3944ba52
Open source framework for multi-physics simuation
sofa::helper::io::Mesh Class Reference

#include <Mesh.h>

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

Public Attributes

std::string loaderType
 

Protected Attributes

sofa::helper::vector< Vector3m_vertices
 
sofa::helper::vector< Topology::Edge > m_edges
 Edges of the mesh loaded. More...
 
sofa::helper::vector< Topology::Triangle > m_triangles
 Triangles of the mesh loaded. More...
 
sofa::helper::vector< Topology::Quad > m_quads
 Quads of the mesh loaded. More...
 
helper::vector< helper::vector< unsigned int > > m_polygons
 Polygons of the mesh loaded. More...
 
helper::vector< HighOrderEdgePositionm_highOrderEdgePositions
 High order edge points of the mesh loaded. More...
 
helper::vector< HighOrderTrianglePositionm_highOrderTrianglePositions
 High order triangle points of the mesh loaded. More...
 
helper::vector< HighOrderQuadPositionm_highOrderQuadPositions
 High order quad points of the mesh loaded. More...
 
sofa::helper::vector< Topology::Tetrahedron > m_tetrahedra
 Tetrahedra of the mesh loaded. More...
 
sofa::helper::vector< Topology::Hexahedron > m_hexahedra
 Hexahedra of the mesh loaded. More...
 
helper::vector< PrimitiveGroupm_edgesGroups
 Groups of Edges. More...
 
helper::vector< PrimitiveGroupm_trianglesGroups
 Groups of Triangles. More...
 
helper::vector< PrimitiveGroupm_quadsGroups
 Groups of Quads. More...
 
helper::vector< PrimitiveGroupm_polygonsGroups
 Groups of Polygons. More...
 
helper::vector< PrimitiveGroupm_tetrahedraGroups
 Groups of Tetrahedra. More...
 
helper::vector< PrimitiveGroupm_hexahedraGroups
 Groups of Hexahedra. More...
 
helper::vector< PrimitiveGroupm_pentahedraGroups
 Groups of Pentahedra. More...
 
helper::vector< PrimitiveGroupm_pyramidsGroups
 Groups of Pyramids. More...
 
sofa::helper::vector< Vector3texCoords
 
sofa::helper::vector< Vector3normals
 
sofa::helper::vector< sofa::helper::vector< sofa::helper::vector< int > > > facets
 
Material material
 
std::vector< Materialmaterials
 
std::vector< PrimitiveGroupgroups
 
std::string textureName
 

Public Member Functions

sofa::helper::vector< Vector3 > & getVertices ()
 
const sofa::helper::vector< Vector3 > & getVertices () const
 
sofa::helper::vector< Topology::Edge > & getEdges ()
 
const sofa::helper::vector< Topology::Edge > & getEdges () const
 
sofa::helper::vector< Topology::Triangle > & getTriangles ()
 
const sofa::helper::vector< Topology::Triangle > & getTriangles () const
 
sofa::helper::vector< Topology::Quad > & getQuads ()
 
const sofa::helper::vector< Topology::Quad > & getQuads () const
 
sofa::helper::vector< Topology::Tetrahedron > & getTetrahedra ()
 
const sofa::helper::vector< Topology::Tetrahedron > & getTetrahedra () const
 
sofa::helper::vector< Topology::Hexahedron > & getHexahedra ()
 
const sofa::helper::vector< Topology::Hexahedron > & getHexahedra () const
 
sofa::helper::vector< Vector3 > & getTexCoords ()
 
const sofa::helper::vector< Vector3 > & getTexCoords () const
 
sofa::helper::vector< Vector3 > & getNormals ()
 
const sofa::helper::vector< Vector3 > & getNormals () const
 
sofa::helper::vector< vector< vector< int > > > & getFacets ()
 
const sofa::helper::vector< vector< vector< int > > > & getFacets () const
 
const sofa::helper::vector< PrimitiveGroup > & getEdgesGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getTrianglesGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getQuadsGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getPolygonsGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getTetrahedraGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getHexahedraGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getPentahedraGroups () const
 
const sofa::helper::vector< PrimitiveGroup > & getPyramidsGroups () const
 
const sofa::helper::vector< HighOrderEdgePosition > & getHighOrderEdgePositions () const
 
const sofa::helper::vector< HighOrderTrianglePosition > & getHighOrderTrianglePositions () const
 
const sofa::helper::vector< HighOrderQuadPosition > & getHighOrderQuadPositions () const
 
const MaterialgetMaterial () const
 
const std::vector< Material > & getMaterials ()
 
const std::vector< PrimitiveGroup > & getGroups ()
 
std::string & getTextureName ()
 

Static Public Member Functions

static MeshCreate (const std::string &filename)
 
static MeshCreate (const std::string &loader, const std::string &filename)
 
template<class Object >
static Object * create (Object *, std::string arg)
 

Attribute details

sofa::helper::vector< sofa::helper::vector < sofa::helper::vector <int> > > sofa::helper::io::Mesh::facets
protected
std::vector<PrimitiveGroup> sofa::helper::io::Mesh::groups
protected
std::string sofa::helper::io::Mesh::loaderType
sofa::helper::vector< Topology::Edge > sofa::helper::io::Mesh::m_edges
protected

Edges of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_edgesGroups
protected

Groups of Edges.

sofa::helper::vector< Topology::Hexahedron > sofa::helper::io::Mesh::m_hexahedra
protected

Hexahedra of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_hexahedraGroups
protected

Groups of Hexahedra.

helper::vector< HighOrderEdgePosition > sofa::helper::io::Mesh::m_highOrderEdgePositions
protected

High order edge points of the mesh loaded.

helper::vector< HighOrderQuadPosition > sofa::helper::io::Mesh::m_highOrderQuadPositions
protected

High order quad points of the mesh loaded.

helper::vector< HighOrderTrianglePosition > sofa::helper::io::Mesh::m_highOrderTrianglePositions
protected

High order triangle points of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_pentahedraGroups
protected

Groups of Pentahedra.

helper::vector< helper::vector <unsigned int> > sofa::helper::io::Mesh::m_polygons
protected

Polygons of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_polygonsGroups
protected

Groups of Polygons.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_pyramidsGroups
protected

Groups of Pyramids.

sofa::helper::vector< Topology::Quad > sofa::helper::io::Mesh::m_quads
protected

Quads of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_quadsGroups
protected

Groups of Quads.

sofa::helper::vector< Topology::Tetrahedron > sofa::helper::io::Mesh::m_tetrahedra
protected

Tetrahedra of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_tetrahedraGroups
protected

Groups of Tetrahedra.

sofa::helper::vector< Topology::Triangle > sofa::helper::io::Mesh::m_triangles
protected

Triangles of the mesh loaded.

helper::vector< PrimitiveGroup > sofa::helper::io::Mesh::m_trianglesGroups
protected

Groups of Triangles.

sofa::helper::vector<Vector3> sofa::helper::io::Mesh::m_vertices
protected
Material sofa::helper::io::Mesh::material
protected
std::vector<Material> sofa::helper::io::Mesh::materials
protected
sofa::helper::vector<Vector3> sofa::helper::io::Mesh::normals
protected
sofa::helper::vector<Vector3> sofa::helper::io::Mesh::texCoords
protected
std::string sofa::helper::io::Mesh::textureName
protected

Function details

Mesh * sofa::helper::io::Mesh::Create ( const std::string &  filename)
static
Mesh * sofa::helper::io::Mesh::Create ( const std::string &  loader,
const std::string &  filename 
)
static
template<class Object >
static Object* sofa::helper::io::Mesh::create ( Object *  ,
std::string  arg 
)
inlinestatic
sofa::helper::vector< Topology::Edge >& sofa::helper::io::Mesh::getEdges ( )
inline
const sofa::helper::vector< Topology::Edge >& sofa::helper::io::Mesh::getEdges ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getEdgesGroups ( ) const
inline
sofa::helper::vector< vector < vector <int> > >& sofa::helper::io::Mesh::getFacets ( )
inline
const sofa::helper::vector< vector < vector <int> > >& sofa::helper::io::Mesh::getFacets ( ) const
inline
const std::vector<PrimitiveGroup>& sofa::helper::io::Mesh::getGroups ( )
inline
sofa::helper::vector< Topology::Hexahedron >& sofa::helper::io::Mesh::getHexahedra ( )
inline
const sofa::helper::vector< Topology::Hexahedron >& sofa::helper::io::Mesh::getHexahedra ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getHexahedraGroups ( ) const
inline
const sofa::helper::vector< HighOrderEdgePosition >& sofa::helper::io::Mesh::getHighOrderEdgePositions ( ) const
inline
const sofa::helper::vector< HighOrderQuadPosition >& sofa::helper::io::Mesh::getHighOrderQuadPositions ( ) const
inline
const sofa::helper::vector< HighOrderTrianglePosition >& sofa::helper::io::Mesh::getHighOrderTrianglePositions ( ) const
inline
const Material& sofa::helper::io::Mesh::getMaterial ( ) const
inline
const std::vector<Material>& sofa::helper::io::Mesh::getMaterials ( )
inline
sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getNormals ( )
inline
const sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getNormals ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getPentahedraGroups ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getPolygonsGroups ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getPyramidsGroups ( ) const
inline
sofa::helper::vector< Topology::Quad >& sofa::helper::io::Mesh::getQuads ( )
inline
const sofa::helper::vector< Topology::Quad >& sofa::helper::io::Mesh::getQuads ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getQuadsGroups ( ) const
inline
sofa::helper::vector< Topology::Tetrahedron >& sofa::helper::io::Mesh::getTetrahedra ( )
inline
const sofa::helper::vector< Topology::Tetrahedron >& sofa::helper::io::Mesh::getTetrahedra ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getTetrahedraGroups ( ) const
inline
sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getTexCoords ( )
inline
const sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getTexCoords ( ) const
inline
std::string& sofa::helper::io::Mesh::getTextureName ( )
inline
sofa::helper::vector< Topology::Triangle >& sofa::helper::io::Mesh::getTriangles ( )
inline
const sofa::helper::vector< Topology::Triangle >& sofa::helper::io::Mesh::getTriangles ( ) const
inline
const sofa::helper::vector< PrimitiveGroup >& sofa::helper::io::Mesh::getTrianglesGroups ( ) const
inline
sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getVertices ( )
inline
const sofa::helper::vector<Vector3>& sofa::helper::io::Mesh::getVertices ( ) const
inline