CalCoreMesh::~CalCoreMesh |
( |
| ) |
|
|
protected |
Destructs the core mesh instance.
This function is the destructor of the core mesh instance.
CalCoreMesh::CalCoreMesh |
( |
| ) |
|
Constructs the core mesh instance.
This function is the default constructor of the core mesh instance.
int CalCoreMesh::addAsMorphTarget |
( |
CalCoreMesh * |
pCoreMesh | ) |
|
Adds a core submesh.
This function adds a core mesh as a blend target. It adds appropriate CalCoreSubMorphTargets to each of the core sub meshes.
- Parameters
-
pCoreMesh | A pointer to the core mesh that shoulb become a blend target. |
- Returns
- One of the following values:
- the assigned morph target ID of the added blend target
- -1 if an error happend
Adds a core submesh.
This function adds a core submesh to the core mesh instance.
- Parameters
-
pCoreSubmesh | A pointer to the core submesh that should be added. |
- Returns
- One of the following values:
- the assigned submesh ID of the added core submesh
- -1 if an error happend
Provides access to a core submesh.
This function returns the core submesh with the given ID.
- Parameters
-
id | The ID of the core submesh that should be returned. |
- Returns
- One of the following values:
- a pointer to the core submesh
- 0 if an error happend
int CalCoreMesh::getCoreSubmeshCount |
( |
| ) |
|
Returns the number of core submeshes.
This function returns the number of core submeshes in the core mesh instance.
- Returns
- The number of core submeshes.
const std::string & CalCoreMesh::getFilename |
( |
void |
| ) |
|
Get the name of the file in which the core mesh is stored, if any.
- Returns
- One of the following values:
- empty string if the mesh was not stored in a file
- the path of the file
const std::string & CalCoreMesh::getName |
( |
void |
| ) |
|
Get the symbolic name the core mesh.
- Returns
- One of the following values:
- empty string if the mesh was no associated to a symbolic name
- the symbolic name
std::vector< CalCoreSubmesh * > & CalCoreMesh::getVectorCoreSubmesh |
( |
| ) |
|
Returns the core submesh vector.
This function returns the vector that contains all core submeshes of the core mesh instance.
- Returns
- A reference to the core submesh vector.
void CalCoreMesh::scale |
( |
float |
factor | ) |
|
Scale the Mesh.
This function rescale all the data that are in the core mesh instance.
- Parameters
-
factor | A float with the scale factor |
void CalCoreMesh::setFilename |
( |
const std::string & |
filename | ) |
|
Set the name of the file in which the core mesh is stored, if any.
- Parameters
-
filename | The path of the file. |
void CalCoreMesh::setName |
( |
const std::string & |
name | ) |
|
Set the symbolic name of the core mesh.
- Parameters
-
The documentation for this class was generated from the following files: