Expand description
Morph delta compression via quantization. Compresses morph delta data to fewer bits for efficient storage and transfer.
Structs§
Functions§
- apply_
quantized_ morph - default_
morph_ quantize_ config - dequantize_
delta - dequantize_
morph - filter_
zero_ deltas - Remove entries where dx=dy=dz=0
- max_
quantization_ error - merge_
quantized_ morphs - Merge two quantized morphs (same scale assumed). If vertex appears in both, sum the deltas.
- morph_
compression_ ratio - pack_
quantized_ morph - Pack to bytes:
[name_len: u32][name bytes][scale: f32][original_count: u32][delta_count: u32][deltas...] - quantize_
delta - quantize_
morph - quantized_
delta_ count - unpack_
quantized_ morph - Parse from bytes: returns None if malformed