Assimp  v3.1.1 (June 2014)
Assimp::SkeletonMeshBuilder Class Reference

This little helper class constructs a dummy mesh for a given scene the resembles the node hierarchy. More...

Classes

struct  Face
 faces More...
 

Public Member Functions

 SkeletonMeshBuilder (aiScene *pScene, aiNode *root=NULL, bool bKnobsOnly=false)
 The constructor processes the given scene and adds a mesh there. More...
 

Protected Member Functions

void CreateGeometry (const aiNode *pNode)
 Recursively builds a simple mesh representation for the given node and also creates a joint for the node that affects this part of the mesh. More...
 
aiMaterialCreateMaterial ()
 Creates a dummy material and returns it. More...
 
aiMeshCreateMesh ()
 Creates the mesh from the internally accumulated stuff and returns it. More...
 

Protected Attributes

std::vector< aiBone * > mBones
 bones More...
 
std::vector< FacemFaces
 
bool mKnobsOnly
 
std::vector< aiVector3DmVertices
 space to assemble the mesh data: points More...
 

Detailed Description

This little helper class constructs a dummy mesh for a given scene the resembles the node hierarchy.

This is useful for file formats that don't carry any mesh data but only animation data.

Constructor & Destructor Documentation

◆ SkeletonMeshBuilder()

SkeletonMeshBuilder::SkeletonMeshBuilder ( aiScene pScene,
aiNode root = NULL,
bool  bKnobsOnly = false 
)

The constructor processes the given scene and adds a mesh there.

Does nothing if the scene already has mesh data.

Parameters
pSceneThe scene for which a skeleton mesh should be constructed.
rootThe node to start with. NULL is the scene root
bKnobsOnlySet this to true if you don't want the connectors between the knobs representing the nodes.

Member Function Documentation

◆ CreateGeometry()

void SkeletonMeshBuilder::CreateGeometry ( const aiNode pNode)
protected

Recursively builds a simple mesh representation for the given node and also creates a joint for the node that affects this part of the mesh.

Parameters
pNodeThe node to build geometry for.

◆ CreateMaterial()

aiMaterial * SkeletonMeshBuilder::CreateMaterial ( )
protected

Creates a dummy material and returns it.

◆ CreateMesh()

aiMesh * SkeletonMeshBuilder::CreateMesh ( )
protected

Creates the mesh from the internally accumulated stuff and returns it.

Member Data Documentation

◆ mBones

std::vector<aiBone*> Assimp::SkeletonMeshBuilder::mBones
protected

bones

◆ mFaces

std::vector<Face> Assimp::SkeletonMeshBuilder::mFaces
protected

◆ mKnobsOnly

bool Assimp::SkeletonMeshBuilder::mKnobsOnly
protected

◆ mVertices

std::vector<aiVector3D> Assimp::SkeletonMeshBuilder::mVertices
protected

space to assemble the mesh data: points


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