Instance Property

edgeCreaseIndices

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

Declaration

var edgeCreaseIndices: MDLMeshBuffer? { get set }

Discussion

Each pair of entries in this buffer identifies an edge, between two connected vertices in the submesh, that is to be treated as a crease during surface subdivision. The buffer is sparse, containing only those vertex indices to be treated as creases. The corresponding entry in the edgeCreases 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 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 vertexCreaseIndices: MDLMeshBuffer?

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software