public static void Remove(TriMesh mesh, EnumRemove enumRemove) { switch (enumRemove) { case EnumRemove.Vertex: RemoveOneRingOfVertex(mesh); break; case EnumRemove.Face: RemoveSelectedFaces(mesh); break; case EnumRemove.Edge: RemoveSelectedEdges(mesh); break; case EnumRemove.TwoRingOfVertex: RemoveTwoRingOfVertex(mesh); break; case EnumRemove.OneRingOfEdge: RemoveOneRingOfEdge(mesh); break; case EnumRemove.MergeEdge: MergeEdge(mesh); break; case EnumRemove.Test: break; } }
private void Remove_Click(object sender, EventArgs e) { EnumRemove type = (EnumRemove)((ToolStripMenuItem)sender).Tag; TriMeshModify.Remove(Mesh, type); OnChanged(EventArgs.Empty); }
public static void Remove(TriMesh mesh,EnumRemove enumRemove) { switch (enumRemove) { case EnumRemove.Vertex: RemoveOneRingOfVertex(mesh); break; case EnumRemove.Face: RemoveSelectedFaces(mesh); break; case EnumRemove.Edge : RemoveSelectedEdges(mesh); break; case EnumRemove.TwoRingOfVertex: RemoveTwoRingOfVertex(mesh); break; case EnumRemove.OneRingOfEdge: RemoveOneRingOfEdge(mesh); break; case EnumRemove.MergeEdge: MergeEdge(mesh); break; case EnumRemove.Test: break; } }