Method RemoveUnusedVertices
RemoveUnusedVertices(ProBuilderMesh, List<int>)
Removes vertices that no face references.
Declaration
public static bool RemoveUnusedVertices(ProBuilderMesh mesh, List<int> removed = null)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
List<int> | removed | An optional list to be populated with the removed indices. If no vertices are removed, this list contains no elements. |
Returns
Type | Description |
---|---|
bool | A list of deleted vertex indices. |