MergeVertices | Cellzilla2D Home |
Description
Needs["Cellzilla2D`"];
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.
Options
"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.
Example
Implementation Notes
See Also