pub fn refine_atom_number(
bonds: &[(f64, f64, f64, f64)],
atoms: &[(usize, f64, f64)],
shades: &[(usize, f64, f64, f64)],
atom_texts: &[(usize, Aabb)],
atom_idx: usize,
rest: Aabb,
clash_dist: f64,
tether_px: f64,
halo_pad: Option<f64>,
avoid_shade: bool,
) -> (f64, f64)Expand description
Refine atom number / custom atom label after a PreferPose seed.
atom_texts are fixed chem (and prior annotation) AABBs — the solver moves
the annotation Outside them. halo_pad / avoid_shade as in atom_number_kit.