Method DeleteVertices
DeleteVertices(ProBuilderMesh, IEnumerable<int>)
Deletes the vertices from the specified index array and rebuilds the sharedVertices array.
Declaration
public static void DeleteVertices(this ProBuilderMesh mesh, IEnumerable<int> distinctIndexes)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IEnumerable<int> | distinctIndexes | A list of vertices to delete. Note that this must not contain duplicates. |
Remarks
This function does not retriangulate the mesh. This means that you are responsible for ensuring that the indexes deleted by this function are not referenced by any triangles.