Method CreatePolygon
CreatePolygon(ProBuilderMesh, IList<int>, bool)
Creates a new face that connects existing vertices.
Declaration
public static Face CreatePolygon(this ProBuilderMesh mesh, IList<int> indexes, bool unordered)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IList<int> | indexes | The indices of the vertices to join with the new polygon. |
bool | unordered | False if the indices in an ordered path; true if not. For unordered indices, this function treats the polygon as a convex shape. ProBuilder allows concave shapes when triangulating ordered paths. |
Returns
Type | Description |
---|---|
Face | The new face that this action successfully created; null if action failed. |