Expand description
.10d Topology section — half-edge graph + CSR adjacency + connectivity
summary serialized as a self-describing section (P2.8).
Layout:
[TopologyMiniHeader: 32 bytes]
[half_edges: N * 16 bytes (HalfEdge = 4 × u32)]
[v_offsets: (V+1) * 4 bytes]
[v_neighbours: N * 4 bytes]
[f_offsets: (F+1) * 4 bytes]
[f_neighbours: N * 4 bytes]All arrays are little-endian, 4-byte aligned. The section is deterministic: identical input yields byte-identical output. Per-section CRC-32C is handled by the container’s section-table encoder.
Structs§
- Topology
Mini Header - The 32-byte Topology-section mini-header.
- Topology
Section Data - Decoded topology section data.
Enums§
- Topology
Section Error - Topology-section encode/decode error.
Constants§
- MAX_
HALF_ EDGE_ COUNT - Maximum half-edge count (bounded by 42MB Sentinel: 42MB / 16B = 2.75M).
- TOPOLOGY_
MINI_ HEADER_ SIZE - Mini-header size in bytes.
Functions§
- decode_
topology_ section - Decode a
.10dTopology section payload. - encode_
topology_ section - Encode a topology section from a half-edge array.
- encoded_
len - Compute the encoded byte length for a topology section.