pub fn refine_caption(
chem_aabb: Aabb,
bonds: &[(f64, f64, f64, f64)],
rest: Aabb,
preferred: Side,
opt_dist: f64,
clash_dist: f64,
) -> (f64, f64)Expand description
Refine a seeded label AABB translation with caption kit + simplex.
rest is the label ink in world space at the greedy/snug seed (tx=ty=0).
Returns world-space delta (dtx, dty) to add to the seed origin.