Exemplo n.º 1
0
        public void RemoveVertex(int vid, bool bInteractive)
        {
            if (PreviewMesh.IsVertex(vid) == false)
            {
                DebugUtil.Log("MeshEditorTool.RemoveVertex: invalid vid!");
                return;
            }
            List <int> tris = get_vtx_tris(PreviewMesh, vid);

            do_remove_triangles(tris, bInteractive);
        }
Exemplo n.º 2
0
        public void RemoveBorderRing(int vid, bool bInteractive)
        {
            if (PreviewMesh.IsVertex(vid) == false)
            {
                DebugUtil.Log("MeshEditorTool.RemoveBorderRing: invalid vid!");
                return;
            }
            MeshVertexSelection verts = new MeshVertexSelection(PreviewMesh); verts.SelectConnectedBoundaryV(vid);
            MeshFaceSelection   tris  = new MeshFaceSelection(PreviewMesh, verts, 1);

            do_remove_triangles(tris, bInteractive);
        }