GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::Mesh Struct Reference

Range of indexed vertices in a model. More...

#include <GREM/resource/Model.hpp>

Public Attributes

PrimitiveType primitiveType
 Type of primitives formed by the vertices of the mesh.
IndexCount indexCount
 Number of indices of the mesh, or 0 if not indexed.
VertexCount vertexCount
 Number of vertices in the mesh.
MorphTargetCount morphTargetCount
 Number of morph targets/weights, or 0 if not morphed.
ValueOffset morphedVertexStride
 Stride, in 4-byte values, of the vertices in the morph targets in this mesh, or 0 if not morphed.
ValueOffset meshDataOffset
 Index of the first 4-byte value in the mesh data in the model.
ValueOffset morphTargetDataOffset
 Index of the first 4-byte value in the morph target data in the model.
Box< 3, float > boundingBox
 Local axis-aligned bounding box of the mesh's vertex positions.
float boundingRadius
 Maximum distance from the origin of the mesh's vertex positions.
VertexFlags vertexFlags
 Vertex flags of the mesh.

Detailed Description

Range of indexed vertices in a model.

Member Data Documentation

◆ primitiveType

PrimitiveType grem::resource::Model::Mesh::primitiveType

Type of primitives formed by the vertices of the mesh.

◆ indexCount

IndexCount grem::resource::Model::Mesh::indexCount

Number of indices of the mesh, or 0 if not indexed.

◆ vertexCount

VertexCount grem::resource::Model::Mesh::vertexCount

Number of vertices in the mesh.

◆ morphTargetCount

MorphTargetCount grem::resource::Model::Mesh::morphTargetCount

Number of morph targets/weights, or 0 if not morphed.

◆ morphedVertexStride

ValueOffset grem::resource::Model::Mesh::morphedVertexStride

Stride, in 4-byte values, of the vertices in the morph targets in this mesh, or 0 if not morphed.

◆ meshDataOffset

ValueOffset grem::resource::Model::Mesh::meshDataOffset

Index of the first 4-byte value in the mesh data in the model.

After this offset, the mesh data is stored in the following order:

◆ morphTargetDataOffset

ValueOffset grem::resource::Model::Mesh::morphTargetDataOffset

Index of the first 4-byte value in the morph target data in the model.

After this offset, the morph target data is stored in the following order:

Note
The vertexCount and vertexFlags are stored in the mesh that this morph target belongs to.

◆ boundingBox

Box<3, float> grem::resource::Model::Mesh::boundingBox

Local axis-aligned bounding box of the mesh's vertex positions.

◆ boundingRadius

float grem::resource::Model::Mesh::boundingRadius

Maximum distance from the origin of the mesh's vertex positions.

◆ vertexFlags

VertexFlags grem::resource::Model::Mesh::vertexFlags

Vertex flags of the mesh.


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