Method ToTriangles
ToTriangles(ProBuilderMesh, IList<Face>)
Converts a selection of faces from n-gons to triangles.
When this method successfully converts a face to triangles, it creates each new triangle as a separate face and deletes the original face.
Declaration
public static Face[] ToTriangles(this ProBuilderMesh mesh, IList<Face> faces)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The target mesh. |
IList<Face> | faces | The faces to convert from quads to triangles. |
Returns
Type | Description |
---|---|
Face[] | Any new triangle faces created by breaking faces into individual triangles. |