Mesh compression code