triangleIndices
A buffer of indices describing the triangle mesh formed by the plane geometry’s vertex data.
Declaration
@property (nonatomic, readonly) const int16_t * triangleIndices;Discussion
Each 16-bit integer value in this buffer represents an index into the vertices and textureCoordinates buffers. Each set of three indices identifies the vertices that form a single triangle in the mesh. You can use buffer as an index buffer for a triangle mesh in GPU-based rendering or to create 3D model asset files.
Each set of three indices forms a triangle, so the number of indices in the triangleIndices buffer is three times the triangleCount value.