MergeVertices Cellzilla2D Home



Merges two vertices in a tissue together, if they are connected by a common edge. The two vertices are replaced with a new vertex at the midpoint of the old edge. The old edge is removed, and all references to edge and vertex numbers are updated.

Return Value

MergeVertices[tissue, {i, j} ] returns a new tissue object with the edge between vertices i and j removed and the vertices replaced with a new vertex halfware between.

MergeVertices[tissue, k ] returns a new tissue object edge k removed.


"Changes"→False - if True, instead of returning the tissue, a list {changes, newtissue} is returned, where changes is a rule list giving the associations between old and new edge numbers.


[ Download Example as Zipped Mathematica Notebook ]

Implementation Notes

See Also


[11.June.2017 ]