Exemplo n.º 1
0
        public static void BoundaryShrink(TriMesh mesh)
        {
            List <List <TriMesh.HalfEdge> > holes = TriMeshUtil.RetrieveBoundaryEdgeAll(mesh);

            foreach (var hole in holes)
            {
                foreach (var hf in hole)
                {
                    TriMeshModify.RemoveVertex(hf.FromVertex);
                }
            }
        }
Exemplo n.º 2
0
        public void Remove(IEnumerable <TriMesh.Face> region)
        {
            foreach (var f in region)
            {
                TriMeshModify.RemoveFace(f);
            }

            foreach (var e in removeEdge)
            {
                TriMeshModify.RemoveEdge(e);
            }

            foreach (var v in removeVertex)
            {
                TriMeshModify.RemoveVertex(v);
            }
        }