Instance Method


Modifies the mesh’s vertex buffers so that no vertices are shared by multiple faces.


- (void)makeVerticesUnique;


If the same entry in the mesh’s vertex buffer is used in multiple faces (according to the index buffers of the mesh’s submeshes), this method duplicates that vertex data and modifies the vertex and index buffers accordingly. If such operations require a larger vertex or index buffer, this method uses the allocator property of the buffer in question to allocate new storage.

See Also

Generating Geometry Data

- addNormalsWithAttributeNamed:creaseThreshold:

Generates surface normal data for the mesh based on its vertex position data.

- addTangentBasisForTextureCoordinateAttributeNamed:tangentAttributeNamed:bitangentAttributeNamed:

Generates surface tangent and bitangent data for the mesh based on its vertex position and texture coordinate data.

- addTangentBasisForTextureCoordinateAttributeNamed:normalAttributeNamed:tangentAttributeNamed:

Generates surface tangent data for the mesh based on its vertex position, surface normal, and texture coordinate data.

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