Esempio n. 1
0
        private void ShapeSel_Click(object sender, EventArgs e)
        {
            EnumShapeSel type = (EnumShapeSel)((ToolStripMenuItem)sender).Tag;
            TriMesh      mesh = TriMeshShape.Instance.CreateShapeSel(type);

            if (mesh != null)
            {
                Mesh = mesh;
            }

            OnChanged(EventArgs.Empty);
        }
Esempio n. 2
0
        public TriMesh CreateShapeSel(EnumShapeSel shape)
        {
            TriMesh mesh = null;

            switch (shape)
            {
            case EnumShapeSel.SelectionVertex:
                mesh = CreateSelectionVertex(MeshInput);
                break;

            case EnumShapeSel.SelectionVertexSave:
                CreateSelectionVertexSave(MeshInput);
                break;

            case EnumShapeSel.SelectionEdge:
                mesh = CreateSelectionEdge(MeshInput);
                break;

            case EnumShapeSel.SelectionEdgeSave:
                CreateSelectionEdgeSave(MeshInput);
                break;

            case EnumShapeSel.SelectionFace:
                mesh = CreateSelectionFace(MeshInput);
                break;

            case EnumShapeSel.SelectionFaceSave:
                CreateSelectionFaceSave(MeshInput);
                break;


            case EnumShapeSel.SelectionAllSave:
                CreateSelectionVertexSave(MeshInput);
                CreateSelectionEdgeSave(MeshInput);
                CreateSelectionFaceSave(MeshInput);
                break;

            default:
                break;
            }

            return(mesh);
        }
Esempio n. 3
0
         public TriMesh CreateShapeSel(EnumShapeSel shape)
        {
            TriMesh mesh = null;
            switch (shape)
            {

               case EnumShapeSel.SelectionVertex:
                    mesh = CreateSelectionVertex(MeshInput);
                    break;
               case EnumShapeSel.SelectionVertexSave:
                    CreateSelectionVertexSave(MeshInput);
                    break;
               case EnumShapeSel.SelectionEdge:
                    mesh = CreateSelectionEdge(MeshInput);
                    break;
               case EnumShapeSel.SelectionEdgeSave:
                    CreateSelectionEdgeSave(MeshInput);
                    break;
               case EnumShapeSel.SelectionFace:
                    mesh = CreateSelectionFace(MeshInput);
                    break;
               case EnumShapeSel.SelectionFaceSave:
                    CreateSelectionFaceSave(MeshInput);
                    break;

 
               case EnumShapeSel.SelectionAllSave:
                    CreateSelectionVertexSave(MeshInput);
                    CreateSelectionEdgeSave(MeshInput);
                    CreateSelectionFaceSave(MeshInput);
                    break;
                default:
                    break;
            } 

            return mesh;
            
        }