A3DMeshData

struct A3DMeshData

Representation of a mesh obtained using:c:func:~A3DRiComputeMesh.

24.0

This structure provides a consistent way to access mesh information. Use:c:func:~A3DRiComputeMeshto populate this structure from an:c:type:~A3DRiRepresentationItementity.

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

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

.

Variables

A3DUns32 A3DMeshData.m_uiCoordSize

Number of elements in:c:member:m_pdCoords <A3DMeshData.m_pdCoords>.

Corresponds to three times the number of vertices.

A3DDouble *A3DMeshData.m_pdCoords

Array of vertex coordinates.

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

A3DUns32 A3DMeshData.m_uiNormalSize

Number of elements in:c:member:m_pdNormals <A3DMeshData.m_pdNormals>.

Corresponds to three times the number of vertices.

A3DDouble *A3DMeshData.m_pdNormals

Array of normal coordinates.

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

A3DUns32 A3DMeshData.m_uiTextureUVSize

The number of elements in:c:member:m_pdTextureUV <A3DMeshData.m_pdTextureUV>.

Corresponds to two times the number of texture coordinates.

A3DDouble *A3DMeshData.m_pdTextureUV

Array of UV-coordinates.

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

A3DUns32 A3DMeshData.m_uiFaceSize

Total number of faces in the mesh.

Determines the size of various other fields in the structure.

A3DUns32 *A3DMeshData.m_puiTriangleCountPerFace

Array containing the number of triangles per face.

Size is:c:member:m_uiFaceSize <A3DMeshData.m_uiFaceSize>.

A3DUns32 *A3DMeshData.m_puiVertexIndicesPerFace

Array of vertex indices.

Indices are ordered per face and per triangle. Size depends on:c:member:m_puiTriangleCountPerFace <A3DMeshData.m_puiTriangleCountPerFace>.

A3DUns32 *A3DMeshData.m_puiTextureCountPerFace

Array of texture counts for each face.

Size is:c:member:m_uiFaceSize <A3DMeshData.m_uiFaceSize>.

A3DUns32 *A3DMeshData.m_puiTextureUVIndicesPerFace

Array of texture indices.

Indices are ordered per face and per triangle. Size depends on:c:member:m_puiTriangleCountPerFace <A3DMeshData.m_puiTriangleCountPerFace>and:c:member:m_puiTextureCountPerFace <A3DMeshData.m_puiTextureCountPerFace>.

A3DUns32 A3DMeshData.m_uiStyleIndex

The style index used for the whole mesh.

Used with:c:func:~A3DGlobalGetGraphStyleData.

A3DUns32 *A3DMeshData.m_puiStyleIndexPerFace

Array of style indices set per face.

Used with:c:func:~A3DGlobalGetGraphStyleData.