Instance Property

edgeCreases

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

Declaration

@property(nonatomic, retain) id<MDLMeshBuffer> edgeCreases;

Discussion

Each entry in this buffer corresponds to a pair of entries in the edgeCreaseIndices buffer that identifies a crease. The value of each entry determines the amount of smoothing to apply to the crease during surface subdivision—a value of zero completely smooths out the edge, and a value of one leaves the edge completely sharp.

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

edgeCreaseIndices

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

edgeCreaseCount

The number of entries in the edge creases buffers.

vertexCreaseIndices

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

vertexCreases

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

vertexCreaseCount

The number of entries in the vertex creases buffers.