Instance Method

makeVerticesUnique

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

Declaration

- (void)makeVerticesUnique;

Discussion

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.