pub fn encode_voxj_object(
object: &VoxjCodecObject,
cell_counts: &[usize],
position: PositionEncoding,
sample: SampleEncoding,
) -> Result<VoxjSerdeObject>Expand description
Encodes one VoxjCodecObject’s geometry into a VoxjSerdeObject with
the given fixed position and sample encodings. cell_counts[p] is the cell
count of the palette referenced by object.palette_refs[p], used to derive
the bit width of packed-base64 samples;
voxj_palette_cell_counts computes it
from the document’s palettes.