Skip to main content

Module debug_align

Module debug_align 

Source
Expand description

Alignment debug overlays — what matched what.

When crate::scene::MoleculeIn::debug_align is on and crate::scene::AlignDebug is stamped, depict paints:

  • Atom level: each matched atom gets a small disk + the template atom index as text. Same number on template and query ⇒ same correspondence. Unmatched query atoms get a muted open circle.
  • Mol level: a corner badge with role + peer id(s).

Constants§

DEBUG_ALIGN_BADGE
DEBUG_ALIGN_OPACITY
DEBUG_ALIGN_PALETTE
Stable palette — index by tag.rem_euclid(N).
DEBUG_ALIGN_UNMATCHED

Functions§

align_debug_query
Build query-side debug: each query atom tagged with the template atom index.
align_debug_template
Build template-side debug: every mapped ref atom tagged with its own index.
paint_align_debug
Paint align-debug primitives in molecule (canvas) space after dx, dy shift.
tag_color