FormIt C++ API
v23.0.0 (2023.0.0)
|
Data that can be used to draw a single mesh.
#include <utils.h>
Public Attributes | |
::vector< uint32_t > | m_aIndices |
Each triangle is formed by taking 3 consecutive indices where index i refers to triangle (m_aVertices[3 * i], m_aVertices[3 * i + 1], m_aVertices[3 * i + 2]). More... | |
::vector< float > | m_aVertices |
Each vertex is formed by taking 3 consecutive floats. More... | |
::vector< float > | m_aNormals |
Each normals is formed by taking 3 consecutive floats. More... | |
::vector< float > | m_aUVs |
Each uv is formed by taking 2 consecutive floats. More... | |
size_t | m_nMaterialIndex = WSM::INVALID_SIZE |
An index into the material vector in GetAllRenderingInformation. More... | |
::vector<uint32_t> WSM::Utils::MeshData::m_aIndices |
Each triangle is formed by taking 3 consecutive indices where index i refers to triangle (m_aVertices[3 * i], m_aVertices[3 * i + 1], m_aVertices[3 * i + 2]).
::vector<float> WSM::Utils::MeshData::m_aNormals |
Each normals is formed by taking 3 consecutive floats.
Could be empty, otherwise same length as m_aVertices.
::vector<float> WSM::Utils::MeshData::m_aUVs |
Each uv is formed by taking 2 consecutive floats.
Could be empty, otherwsie m_UVs.size() * 3 / 2 = m_aVertices.size().
::vector<float> WSM::Utils::MeshData::m_aVertices |
Each vertex is formed by taking 3 consecutive floats.
size_t WSM::Utils::MeshData::m_nMaterialIndex = WSM::INVALID_SIZE |
An index into the material vector in GetAllRenderingInformation.