Method CollapseSharedVertices
CollapseSharedVertices(Mesh, Vertex[])
Merges coincident vertices where possible, optimizing the vertex count of a Mesh object.
Declaration
public static void CollapseSharedVertices(Mesh mesh, Vertex[] vertices = null)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh to optimize. |
Vertex[] | vertices | Specify an array of Vertex objects to use instead of extracting attributes from the mesh. This is a performance optimization for when this array already exists. If not specified, ProBuilder generates this array automatically. |