Skip to main content

region_text_kit

Function region_text_kit 

Source
pub fn region_text_kit(
    world: &mut LayoutWorld,
    constraints: &mut Vec<Constraint>,
    hard: &mut Vec<HardConstraint>,
    region_idx: usize,
    hull: Shape,
    text_ink: Aabb,
    inside: bool,
    preferred: Side,
    clash_dist: f64,
    side_about: (f64, f64),
    other_labels: &[Aabb],
) -> String
Expand description

Box / hull region text kit.

side_about is the mean of contained atom positions — Constraint::PreferSide (pos) is relative to this point, not the hull or full-mol AABB. Edge-align is align_along on that constraint (not a solver branch on Point vs AABB).