A3DMeshData
-
struct
A3DMeshData Representation of a mesh obtained using
A3DRiComputeMesh().24.0This structure provides a consistent way to access mesh information. Use
A3DRiComputeMesh()to populate this structure from anA3DRiRepresentationItementity.embed:rst:inline :doc:`/guide/geometry/using_a3d_mesh_data`
A fully detailed version of the structure layout and usage is presented in .
Variables
-
A3DUns32
A3DMeshData.m_uiCoordSize -
Number of elements in
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
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
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
m_uiFaceSize.
-
A3DUns32 *
A3DMeshData.m_puiVertexIndicesPerFace -
Array of vertex indices.
Indices are ordered per face and per triangle. Size depends on
m_puiTriangleCountPerFace.
-
A3DUns32 *
A3DMeshData.m_puiTextureCountPerFace -
Array of texture counts for each face.
Size is
m_uiFaceSize.
-
A3DUns32 *
A3DMeshData.m_puiTextureUVIndicesPerFace -
Array of texture indices.
Indices are ordered per face and per triangle. Size depends on
m_puiTriangleCountPerFaceandm_puiTextureCountPerFace.
-
A3DUns32
A3DMeshData.m_uiStyleIndex -
The style index used for the whole mesh.
Used with
A3DGlobalGetGraphStyleData().
-
A3DUns32 *
A3DMeshData.m_puiStyleIndexPerFace -
Array of style indices set per face.
Used with
A3DGlobalGetGraphStyleData().