Instance Property

vertexCreaseIndices

A buffer containing vertex indices to be treated as creases during surface subdivision.

Declaration

var vertexCreaseIndices: MDLMeshBuffer? { get set }

Discussion

Each of entry in this buffer identifies a vertex that is to be treated as a crease or point during surface subdivision. The buffer is sparse, containing only those vertex indices to be treated as creases. The corresponding entry in the vertexCreases buffer provides a sharpness value for the crease.

Because the number of entries in this buffer is likely to be different than the number of entries in any other vertex buffer, it shouldn't be interleaved with other data in the mesh.

See Also

Identifying Creases

var edgeCreaseIndices: MDLMeshBuffer?

A buffer containing vertex indices that describe edges to be treated as creases during surface subdivision.

var edgeCreases: MDLMeshBuffer?

A buffer containing sharpness values to be applied to edges during surface subdivision.

var edgeCreaseCount: Int

The number of entries in the edge creases buffers.

var vertexCreases: MDLMeshBuffer?

A buffer containing sharpness values to be applied to points during surface subdivision.

var vertexCreaseCount: Int

The number of entries in the vertex creases buffers.