Method MergePairs
MergePairs(ProBuilderMesh, IEnumerable<SimpleTuple<Face, Face>>, bool)
Merges each pair of faces into a single face. Indexes are combined, but otherwise the properties of the first face in the pair take precedence.
This is the equivalent of the Merge Faces action.
Declaration
public static List<Face> MergePairs(ProBuilderMesh target, IEnumerable<SimpleTuple<Face, Face>> pairs, bool collapseCoincidentVertices = true)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | target | The source mesh. |
IEnumerable<SimpleTuple<Face, Face>> | pairs | The list of face pairs to merge. |
bool | collapseCoincidentVertices | True to condense coincident vertex positions on each face. |
Returns
Type | Description |
---|---|
List<Face> | A list of the new faces created. |