Method CreatePolygonWithHole
CreatePolygonWithHole(ProBuilderMesh, IList<int>, IList<IList<int>>)
Creates a new face by connecting existing vertices.
Declaration
public static Face CreatePolygonWithHole(this ProBuilderMesh mesh, IList<int> indexes, IList<IList<int>> holes)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IList<int> | indexes | The indexes of the vertices to join with the new polygon. |
IList<IList<int>> | holes | A list of indices defining holes. |
Returns
Type | Description |
---|---|
Face | The new face that this action successfully created; null if action failed. |