A3DMeshData

Fields

A3DUns32

m_uiCoordSize

A3DDouble *

m_pdCoords

A3DUns32

m_uiNormalSize

A3DDouble *

m_pdNormals

A3DUns32

m_uiTextureUVSize

A3DDouble *

m_pdTextureUV

A3DUns32

m_uiFaceSize

A3DUns32 *

m_puiTriangleCountPerFace

A3DUns32 *

m_puiVertexIndicesPerFace

A3DUns32 *

m_puiTextureCountPerFace

A3DUns32 *

m_puiTextureUVIndicesPerFace

A3DUns32

m_uiStyleIndex

A3DUns32 *

m_puiStyleIndexPerFace

Detailed Description

struct A3DMeshData

Representation of a mesh obtained using A3DRiComputeMesh.

This structure provides a consistent way to access mesh information. Use A3DRiComputeMesh to populate this structure from an A3DRiRepresentationItem entity.

Version

24.0

A fully detailed version of the structure layout and usage is presented in /guide/geometry/using_a3d_mesh_data.

See also

A3DRiComputeMesh

Public Members

A3DUns32 m_uiCoordSize

Number of elements in m_pdCoords. Corresponds to three times the number of vertices.

A3DDouble *m_pdCoords

Array of vertex coordinates. Stored as a sequence of {x, y, z} triplets.

A3DUns32 m_uiNormalSize

Number of elements in m_pdNormals. Corresponds to three times the number of vertices.

A3DDouble *m_pdNormals

Array of normal coordinates. Stored as a sequence of {x, y, z} triplets.

A3DUns32 m_uiTextureUVSize

The number of elements in m_pdTextureUV. Corresponds to two times the number of texture coordinates.

A3DDouble *m_pdTextureUV

Array of UV-coordinates. Stored as a sequence of {u, v} pairs.

A3DUns32 m_uiFaceSize

Total number of faces in the mesh. Determines the size of various other fields in the structure.

A3DUns32 *m_puiTriangleCountPerFace

Array containing the number of triangles per face. Size is m_uiFaceSize.

A3DUns32 *m_puiVertexIndicesPerFace

Array of vertex indices. Indices are ordered per face and per triangle. Size depends on m_puiTriangleCountPerFace.

A3DUns32 *m_puiTextureCountPerFace

Array of texture counts for each face. Size is m_uiFaceSize.

A3DUns32 *m_puiTextureUVIndicesPerFace

Array of texture indices. Indices are ordered per face and per triangle. Size depends on m_puiTriangleCountPerFace and m_puiTextureCountPerFace.

A3DUns32 m_uiStyleIndex

The style index used for the whole mesh. Used with A3DGlobalGetGraphStyleData.

A3DUns32 *m_puiStyleIndexPerFace

Array of style indices set per face. Used with A3DGlobalGetGraphStyleData.