# A3DMeshData

struct `A3DMeshData`

  Representation of a mesh obtained using `A3DRiComputeMesh()`.

  > 24.0

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

  A fully detailed version of the structure layout and usage is presented in

      embed:rst:inline :doc:`/guide/geometry/using_a3d_mesh_data`

  .

  > `A3DRiComputeMesh()`

  ## Index

  Variables

  - `m_uiCoordSize`
  - `m_pdCoords`
  - `m_uiNormalSize`
  - `m_pdNormals`
  - `m_uiTextureUVSize`
  - `m_pdTextureUV`
  - `m_uiFaceSize`
  - `m_puiTriangleCountPerFace`
  - `m_puiVertexIndicesPerFace`
  - `m_puiTextureCountPerFace`
  - `m_puiTextureUVIndicesPerFace`
  - `m_uiStyleIndex`
  - `m_puiStyleIndexPerFace`

Variables

A3DUns32 `A3DMeshData.``m_uiCoordSize`
  `A3DUns32`

  Number of elements in `m_pdCoords`.

  Corresponds to three times the number of vertices.

A3DDouble *`A3DMeshData.``m_pdCoords`
  `A3DDouble`*

  Array of vertex coordinates.

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

A3DUns32 `A3DMeshData.``m_uiNormalSize`
  `A3DUns32`

  Number of elements in `m_pdNormals`.

  Corresponds to three times the number of vertices.

A3DDouble *`A3DMeshData.``m_pdNormals`
  `A3DDouble`*

  Array of normal coordinates.

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

A3DUns32 `A3DMeshData.``m_uiTextureUVSize`
  `A3DUns32`

  The number of elements in `m_pdTextureUV`.

  Corresponds to two times the number of texture coordinates.

A3DDouble *`A3DMeshData.``m_pdTextureUV`
  `A3DDouble`*

  Array of UV-coordinates.

  Stored as a sequence of `{u, v}`pairs.

A3DUns32 `A3DMeshData.``m_uiFaceSize`
  `A3DUns32`

  Total number of faces in the mesh.

  Determines the size of various other fields in the structure.

A3DUns32 *`A3DMeshData.``m_puiTriangleCountPerFace`
  `A3DUns32`*

  Array containing the number of triangles per face.

  Size is `m_uiFaceSize`.

A3DUns32 *`A3DMeshData.``m_puiVertexIndicesPerFace`
  `A3DUns32`*

  Array of vertex indices.

  Indices are ordered per face and per triangle. Size depends on `m_puiTriangleCountPerFace`.

A3DUns32 *`A3DMeshData.``m_puiTextureCountPerFace`
  `A3DUns32`*

  Array of texture counts for each face.

  Size is `m_uiFaceSize`.

A3DUns32 *`A3DMeshData.``m_puiTextureUVIndicesPerFace`
  `A3DUns32`*

  Array of texture indices.

  Indices are ordered per face and per triangle. Size depends on `m_puiTriangleCountPerFace`and `m_puiTextureCountPerFace`.

A3DUns32 `A3DMeshData.``m_uiStyleIndex`
  `A3DUns32`

  The style index used for the whole mesh.

  Used with `A3DGlobalGetGraphStyleData()`.

A3DUns32 *`A3DMeshData.``m_puiStyleIndexPerFace`
  `A3DUns32`*

  Array of style indices set per face.

  Used with `A3DGlobalGetGraphStyleData()`.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...