Assimp  v3.1.1 (June 2014)
Assimp::FBX::MeshGeometry Class Reference

DOM class for FBX geometry of type "Mesh". More...

Inherits Assimp::FBX::Geometry.

Public Member Functions

unsigned int FaceForVertexIndex (unsigned int in_index) const
 Determine the face to which a particular output vertex index belongs. More...
 
const std::vector< aiVector3D > & GetBinormals () const
 Get a list of all vertex binormals or an empty array if no binormals are specified. More...
 
const std::vector< unsigned int > & GetFaceIndexCounts () const
 Return list of faces - each entry denotes a face and specifies how many vertices it has. More...
 
const MatIndexArrayGetMaterialIndices () const
 Get per-face-vertex material assignments. More...
 
const std::vector< aiVector3D > & GetNormals () const
 Get a list of all vertex normals or an empty array if no normals are specified. More...
 
const std::vector< aiVector3D > & GetTangents () const
 Get a list of all vertex tangents or an empty array if no tangents are specified. More...
 
std::string GetTextureCoordChannelName (unsigned int index) const
 Get a UV coordinate slot, returns an empty array if the requested slot does not exist. More...
 
const std::vector< aiVector2D > & GetTextureCoords (unsigned int index) const
 Get a UV coordinate slot, returns an empty array if the requested slot does not exist. More...
 
const std::vector< aiColor4D > & GetVertexColors (unsigned int index) const
 Get a vertex color coordinate slot, returns an empty array if the requested slot does not exist. More...
 
const std::vector< aiVector3D > & GetVertices () const
 Get a list of all vertex points, non-unique. More...
 
 MeshGeometry (uint64_t id, const Element &element, const std::string &name, const Document &doc)
 The class constructor. More...
 
const unsigned int * ToOutputVertexIndex (unsigned int in_index, unsigned int &count) const
 Convert from a fbx file vertex index (for example from a #Cluster weight) or NULL if the vertex index is not valid. More...
 
virtual ~MeshGeometry ()
 The class destructor. More...
 
- Public Member Functions inherited from Assimp::FBX::Geometry
const SkinDeformerSkin () const
 Get the Skin attached to this geometry or NULL. More...
 
 Geometry (uint64_t id, const Element &element, const std::string &name, const Document &doc)
 
virtual ~Geometry ()
 
- Public Member Functions inherited from Assimp::FBX::Object
uint64_t ID () const
 
const std::string & Name () const
 
 Object (uint64_t id, const Element &element, const std::string &name)
 
const ElementSourceElement () const
 
virtual ~Object ()
 

Additional Inherited Members

- Protected Attributes inherited from Assimp::FBX::Object
const Elementelement
 
const uint64_t id
 
const std::string name
 

Detailed Description

DOM class for FBX geometry of type "Mesh".

Constructor & Destructor Documentation

Assimp::FBX::MeshGeometry::MeshGeometry ( uint64_t  id,
const Element element,
const std::string &  name,
const Document doc 
)

The class constructor.

Assimp::FBX::MeshGeometry::~MeshGeometry ( )
virtual

The class destructor.

Member Function Documentation

unsigned int Assimp::FBX::MeshGeometry::FaceForVertexIndex ( unsigned int  in_index) const

Determine the face to which a particular output vertex index belongs.

This mapping is always unique.

const std::vector< aiVector3D > & Assimp::FBX::MeshGeometry::GetBinormals ( ) const

Get a list of all vertex binormals or an empty array if no binormals are specified.

const std::vector< unsigned int > & Assimp::FBX::MeshGeometry::GetFaceIndexCounts ( ) const

Return list of faces - each entry denotes a face and specifies how many vertices it has.

Vertices are taken from the vertex data arrays in sequential order.

const MatIndexArray & Assimp::FBX::MeshGeometry::GetMaterialIndices ( ) const

Get per-face-vertex material assignments.

const std::vector< aiVector3D > & Assimp::FBX::MeshGeometry::GetNormals ( ) const

Get a list of all vertex normals or an empty array if no normals are specified.

const std::vector< aiVector3D > & Assimp::FBX::MeshGeometry::GetTangents ( ) const

Get a list of all vertex tangents or an empty array if no tangents are specified.

std::string Assimp::FBX::MeshGeometry::GetTextureCoordChannelName ( unsigned int  index) const

Get a UV coordinate slot, returns an empty array if the requested slot does not exist.

const std::vector< aiVector2D > & Assimp::FBX::MeshGeometry::GetTextureCoords ( unsigned int  index) const

Get a UV coordinate slot, returns an empty array if the requested slot does not exist.

const std::vector< aiColor4D > & Assimp::FBX::MeshGeometry::GetVertexColors ( unsigned int  index) const

Get a vertex color coordinate slot, returns an empty array if the requested slot does not exist.

const std::vector< aiVector3D > & Assimp::FBX::MeshGeometry::GetVertices ( ) const

Get a list of all vertex points, non-unique.

const unsigned int * Assimp::FBX::MeshGeometry::ToOutputVertexIndex ( unsigned int  in_index,
unsigned int &  count 
) const

Convert from a fbx file vertex index (for example from a #Cluster weight) or NULL if the vertex index is not valid.


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