Instance Property

textureCoordinates

A buffer of texture coordinate values for each point in the face mesh.

Declaration

@property(nonatomic, readonly) const simd_float2 *textureCoordinates;

Discussion

Each float2 value in this buffer represents the UV texture coordinates for the vertex at the corresponding index in the vertices buffer.

The textureCoordinateCount property provides the number of elements in the buffer.

Face mesh topology is constant across ARFaceGeometry instances, so the data in this buffer always maps the same vertex indices to the same texture coordinates.

See Also

Accessing Mesh Data

vertexCount

The number of elements in the vertices buffer.

vertices

A buffer of vertex positions for each point in the face mesh.

textureCoordinateCount

The number of elements in the textureCoordinates buffer.

triangleCount

The number of triangles described by the triangleIndices buffer.

triangleIndices

A buffer of indices describing the triangle mesh formed by the face geometry's vertex data.