Assimp
v4.1. (December 2018)
|
A set of primitives to be rendered. A node can contain one or more meshes. A node's transform places the mesh in the scene. More...
Inherits glTF2::Object.
Classes | |
struct | Primitive |
Public Types | |
typedef std::vector< Ref< Accessor > > | AccessorList |
Public Member Functions | |
Mesh () | |
void | Read (Value &pJSON_Object, Asset &pAsset_Root) |
Get mesh data from JSON-object and place them to root asset. More... | |
![]() | |
virtual bool | IsSpecial () const |
Objects marked as special are not exported (used to emulate the binary body buffer) More... | |
virtual | ~Object () |
Public Attributes | |
std::vector< Primitive > | primitives |
std::vector< float > | weights |
![]() | |
std::string | id |
The globally unique ID used to reference this object. More... | |
int | index |
The index of this object within its property container. More... | |
std::string | name |
The user-defined name of this object. More... | |
int | oIndex |
The original index of this object defined in the JSON. More... | |
Additional Inherited Members | |
![]() | |
static const char * | TranslateId (Asset &, const char *id) |
Maps special IDs to another ID, where needed. Subclasses may override it (statically) More... | |
A set of primitives to be rendered. A node can contain one or more meshes. A node's transform places the mesh in the scene.
typedef std::vector< Ref<Accessor> > glTF2::Mesh::AccessorList |
|
inline |
Get mesh data from JSON-object and place them to root asset.
[in] | pJSON_Object | - reference to pJSON-object from which data are read. |
[out] | pAsset_Root | - reference to root assed where data will be stored. |
std::vector<Primitive> glTF2::Mesh::primitives |
std::vector<float> glTF2::Mesh::weights |