Expand description
.10d Morph Target Section (MRP1) — sparse and dense quantized blend-shape
deltas with optional EONT1 ontogenetic/metabolic binding.
Honors AGENTS.md §0 & §0-A:
encode_morph_section,decode_morph_section_into, andapply_morph_targets_zero_heapperform zero heap allocations, operating exclusively on caller-provided slices.
Structs§
- Morph
Section Header - 32-byte
#[repr(C)]POD header for a.10dMRP1morph target section. - Quantized
Morph Delta - 16-byte
#[repr(C)]POD quantized morph delta record.
Enums§
- Morph
Section Error - Errors produced when encoding, decoding, or applying a
.10dMRP1morph section.
Constants§
- FLAG_
MORPH_ DENSE - FLAG_
MORPH_ HAS_ NORMALS - FLAG_
MORPH_ HAS_ TANGENTS - FLAG_
MORPH_ ONTOGENETIC_ BIND - FLAG_
MORPH_ SPARSE - Section flags for
MorphSectionHeader::flags. - MAGIC_
MRP1 - 4-byte magic identifier for
.10dmorph target sections. - MAX_
MORPH_ DELTAS - Maximum quantized morph delta records per section.
- MAX_
MORPH_ TARGETS - Maximum morph targets supported per
.10dcontainer. - MORPH_
SECTION_ HEADER_ SIZE - Fixed byte size of
MorphSectionHeader. - MORPH_
SECTION_ VERSION - Current version of the
MRP1section format. - QUANTIZED_
MORPH_ DELTA_ SIZE - Fixed byte size of
QuantizedMorphDelta.
Functions§
- apply_
morph_ targets_ zero_ heap - Apply morph target deltas directly into caller-owned vertex buffers (
HotZeroHeap). - decode_
morph_ section_ into - Decode a
MRP1morph section into caller-providedQuantizedMorphDeltastorage (Zero-Heap). - dequantize_
morph_ delta - Dequantize a 16-byte
QuantizedMorphDeltaback into(position_delta, normal_delta). - encode_
morph_ section - Encode a
MRP1morph target section into a caller-supplied byte slice (Zero-Heap). - morph_
section_ encoded_ len - Compute exact byte length for a
MRP1section withdelta_countrecords. - quantize_
morph_ delta - Quantize a floating-point position/normal/tangent morph delta into a 16-byte POD record.