Mesh compression and caching