Skip to main content

Module correspondence_section

Module correspondence_section 

Source
Expand description

Section 9 (FEMC): Volumetric-to-Surface Correspondence Map Section.

Binds high-resolution visual surface mesh vertices (QuantizedMesh / ClusterDag) to volumetric tetrahedral finite elements (Reconstruction / FEM / XPBD) via 16-byte VertexTetBinding records with unorm16 partition-of-unity barycentric weights (w0 + w1 + w2 + w3 == 65535) and octahedral reference normal encodings.

Structs§

CorrespondenceMiniHeader
16-byte POD mini-header for SectionType::CorrespondenceMap (FEMC).
VertexTetBinding
16-byte POD record binding one surface vertex to a volumetric tetrahedron.

Enums§

CorrespondenceSectionError
Errors emitted when encoding, decoding, or evaluating a FEMC correspondence section.

Constants§

BARYCENTRIC_UNORM16_SUM
Normalization denominator for unorm16 barycentric coordinates.
CORRESPONDENCE_HEADER_SIZE
Fixed byte size of CorrespondenceMiniHeader.
CORRESPONDENCE_SECTION_VERSION
Current format version of the FEMC section.
FLAG_FEMC_CONFORMING_BARYCENTRIC
Section flag: all bindings strictly lie inside or on the boundary of their host tetrahedron.
FLAG_FEMC_HAS_NORMAL_ROTATION
Section flag: normal_rotation_oct16 stores rest-frame local normal directions.
MAGIC_FEMC
4-byte ASCII magic for .10d Volumetric-to-Surface Correspondence sections ("FEMC").
MAX_CORRESPONDENCE_BINDINGS
Maximum bindings admitted per FEMC section.
VERTEX_TET_BINDING_SIZE
Fixed byte size of VertexTetBinding.

Functions§

correspondence_encoded_len
Compute exact byte length for a FEMC section with binding_count records.
decode_correspondence_section
Decode and validate a FEMC section into caller-provided VertexTetBinding storage (Zero-Heap).
deform_surface_vertices_zero_heap
Evaluate deformed surface vertex positions across a FEMC binding slice in zero heap memory.
encode_correspondence_section
Encode a FEMC section into a caller-supplied byte slice without heap allocation.