MeshDescriptor Struct Reference
Describes how a Mesh should be loaded. More...
#include <MeshDescriptor.hh>
Public Member Functions | |
MeshDescriptor () | |
Constructor. | |
MeshDescriptor (const common::Mesh *_mesh) | |
Constructor. | |
MeshDescriptor (const std::string &_meshName) | |
Constructor. A common::Mesh will be retrieved from the MeshManager by the given name upon a call to Normalize. | |
void | Load () |
Ensures both the meshName and mesh member variables have been assigned. If mesh is not null, it will be used to override the value of meshName. | |
Public Attributes | |
bool | centerSubMesh = false |
Denotes if the loaded sub-mesh vertices should be centered. | |
const common::Mesh * | mesh = nullptr |
common::Mesh object | |
std::string | meshName |
Name of the registered Mesh. | |
std::string | subMeshName |
Name of the sub-mesh to be loaded. An empty string signifies all sub-meshes should be loaded. | |
Detailed Description
Describes how a Mesh should be loaded.
Constructor & Destructor Documentation
◆ MeshDescriptor() [1/3]
MeshDescriptor | ( | ) |
Constructor.
◆ MeshDescriptor() [2/3]
|
explicit |
Constructor. A common::Mesh will be retrieved from the MeshManager by the given name upon a call to Normalize.
- Parameters
-
[in] _meshName Name of the mesh to load
◆ MeshDescriptor() [3/3]
|
explicit |
Constructor.
- Parameters
-
[in] _mesh Mesh to load
Member Function Documentation
◆ Load()
void Load | ( | ) |
Ensures both the meshName and mesh member variables have been assigned. If mesh is not null, it will be used to override the value of meshName.
Member Data Documentation
◆ centerSubMesh
bool centerSubMesh = false |
Denotes if the loaded sub-mesh vertices should be centered.
◆ mesh
const common::Mesh* mesh = nullptr |
common::Mesh object
◆ meshName
std::string meshName |
Name of the registered Mesh.
◆ subMeshName
std::string subMeshName |
Name of the sub-mesh to be loaded. An empty string signifies all sub-meshes should be loaded.
The documentation for this struct was generated from the following file: