private void mergeVertexPairsToolStripMenuItem_Click(object sender, EventArgs e) { if (Manipulated == meshController) { CurrentMesh.MergeVertexPairs(); Manipulated.UpdateSelection(); OnEachViewDo(view => view.Invalidate()); } }
private void flipToolStripMenuItem_Click(object sender, EventArgs e) { Trace.WriteLine("flipSelected:"); if (Manipulated.SelectedCount <= 0) { return; } if (Manipulated == meshController) { FullMeshAction("Flip", () => CurrentMesh.FlipSelected()); } Manipulated.UpdateSelection(); OnEachViewDo(view => view.Invalidate()); }
private void mergeToolStripMenuItem_Click(object sender, EventArgs e) { Trace.WriteLine("mergeSelected:"); if (Manipulated.SelectableCount <= 0) { return; } if (Manipulated == itemsController) { AllItemsAction("Merge", () => items.MergeSelectedItems()); } else { FullMeshAction("Merge", () => CurrentMesh.MergeSelected()); } Manipulated.UpdateSelection(); OnEachViewDo(view => view.Invalidate()); }