Skip to main content

encode_topology_qm

Function encode_topology_qm 

Source
pub fn encode_topology_qm(
    feats: &[Feat],
    epsilon_deg: f64,
    qbits: u32,
    abs_fixed: bool,
) -> TopoOut
Expand description

abs_fixed stores arc vertices as fixed-width absolute ints (random-access) instead of the default delta + zigzag-varint stream.

ยงPanics

Panics if a count or quantized coordinate exceeds its serialized width (u16 pool/poly counts, u32 arc ids, i32 coords).