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); } } }
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); } }