コード例 #1
0
        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;
            }
        }
コード例 #2
0
        private void Remove_Click(object sender, EventArgs e)
        {
            EnumRemove type = (EnumRemove)((ToolStripMenuItem)sender).Tag;

            TriMeshModify.Remove(Mesh, type);
            OnChanged(EventArgs.Empty);
        }
コード例 #3
0
        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;

            }
        }