Assimp  v4.1. (December 2018)
glTF2::Mesh Struct Reference

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)
 
- Public Member Functions inherited from glTF2::Object
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< Primitiveprimitives
 
std::vector< floatweights
 
- Public Attributes inherited from glTF2::Object
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 Public Member Functions inherited from glTF2::Object
static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Detailed Description

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.

Member Typedef Documentation

◆ AccessorList

typedef std::vector< Ref<Accessor> > glTF2::Mesh::AccessorList

Constructor & Destructor Documentation

◆ Mesh()

glTF2::Mesh::Mesh ( )
inline

Member Function Documentation

◆ Read()

void Mesh::Read ( Value pJSON_Object,
Asset pAsset_Root 
)
inline

Get mesh data from JSON-object and place them to root asset.

Parameters
[in]pJSON_Object- reference to pJSON-object from which data are read.
[out]pAsset_Root- reference to root assed where data will be stored.

Member Data Documentation

◆ primitives

std::vector<Primitive> glTF2::Mesh::primitives

◆ weights

std::vector<float> glTF2::Mesh::weights

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