pub fn build_topology(feats: &[Feat], epsilon_deg: f64) -> Topology
Builds the topology: vertices are deduped, shared arcs are cut at junctions, and topology-aware RDP runs on each arc exactly once with endpoints fixed.