pub fn encode_mesh_v2(mesh: &Mesh) -> Result<Vec<u8>, EncodeMeshError>Expand description
Encodes mesh as a mesh chunk payload of version 2, choosing the codings
that store it smallest.
Connectivity B is tried only when the triangle codec needs more than 2 bytes a triangle in the mesh’s own order, which is when exporters wrote the triangles scattered. The three vertex codings are then compared in the winning order. Every choice is made on the sizes the container stores.