pub fn encode_voxj_object_smallest(
object: &VoxjCodecObject,
cell_counts: &[usize],
) -> Result<VoxjSerdeObject>Expand description
Encodes one VoxjCodecObject’s geometry into a VoxjSerdeObject,
trying every applicable non-raw encoding pairing, deflating each, and
keeping the smallest. The canonical shipping form. cell_counts[p] is the
cell count of the palette referenced by object.palette_refs[p];
voxj_palette_cell_counts computes it
from the document’s palettes.