pub fn refine_region_text(
bonds: &[(f64, f64, f64, f64)],
atoms: &[(usize, f64, f64)],
shades: &[(usize, f64, f64, f64)],
hull: Shape,
text_rest: Aabb,
inside: bool,
preferred: Side,
clash_dist: f64,
other_labels: &[Aabb],
) -> (f64, f64)Expand description
Refine region text after greedy edge place.
atoms are (index, x, y) centers — installed as ~0.3-bond disks so
contain / clash treat them as area, not points. Inside labels get hard
[LAGRANGIAN_CONTAIN] on the (grown) hull; PreferPose stays off so snug
can travel inward.