Method DeleteFaces
DeleteFaces(ProBuilderMesh, IEnumerable<Face>)
Deletes a collection of faces from a mesh.
This is the equivalent of the Delete Faces action.
Declaration
public static int[] DeleteFaces(this ProBuilderMesh mesh, IEnumerable<Face> faces)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IEnumerable<Face> | faces | The faces to remove. |
Returns
Type | Description |
---|---|
int[] | An array of vertex indices that ProBuilder deleted when it removed the specified faces. |
DeleteFaces(ProBuilderMesh, IList<int>)
Deletes a list of faces from a mesh.
This is the equivalent of the Delete Faces action.
Declaration
public static int[] DeleteFaces(this ProBuilderMesh mesh, IList<int> faceIndexes)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IList<int> | faceIndexes | The indices of faces to remove (corresponding to the faces collection. |
Returns
Type | Description |
---|---|
int[] | An array of vertex indices that ProBuilder deleted when it removed the specified faces. |