A3DMeshData

Detailed Description

struct A3DMeshData

Mesh data structure.

Version

24.0

Public Members

A3DUns32 m_uiCoordSize

The size of m_pdCoords.

A3DDouble *m_pdCoords

Array of coordinates (3 values per point: x, y, z).

A3DUns32 m_uiNormalSize

The size of m_pdNormals.

A3DDouble *m_pdNormals

Array of normals (3 values per point: x, y, z).

A3DUns32 m_uiTextureUVSize

The size of m_pdTextureUV.

A3DDouble *m_pdTextureUV

Array of UV coordinate values for textures (a vertex can have multiple UV coordinates).

A3DUns32 m_uiFaceSize

The number of faces, so the size of m_puiTriangleCountPerFace, m_ppuiPointIndicesPerFace, m_ppuiNormalIndicesPerFace and m_puiTextureCountPerFace.

A3DUns32 *m_puiTriangleCountPerFace

The number of triangles per face.

A3DUns32 **m_ppuiPointIndicesPerFace

Array of point indices per face, each group of 3 represents one triangle.

Example: if the point index is 5, coordinates must be retrieved from m_pdCoords at position 5, 6, 7 (x,y,z).

A3DUns32 **m_ppuiNormalIndicesPerFace

Array of normal indices per face, each group of 3 represents one triangle.

Example: if the normal index is 5, normal values must be retrieved from m_pdNormals at position 5, 6, 7 (x,y,z).

A3DUns32 *m_puiTextureCountPerFace

The number of textures per face (a face can use multiple textures).

A3DUns32 **m_ppuiTextureUVIndicesPerFace

Array of texture UV indices per face.

Example: if the texture UV index is 5, UV values must be retrieved from m_pdTextureUV at position 5, 6 (u, v). If there are multiple textures for the face, the indices will be grouped per vertex in the face, so UVindex_vertex0_texture0, UVindex_vertex0_texture1, UVindex_vertex1_texture0, UVindex_vertex1_texture0, …

A3DUns32 m_uiStyleIndex

The style index used for the whole mesh.