Skip to main content

link_quads

Function link_quads 

Source
pub fn link_quads(quads: &[Quad]) -> Vec<LinkedQuad>
Expand description

Build LinkedQuads from detected quads and link neighboring corners.

Two corners are eligible to link when their squared distance is within [LINK_THRESH_SCALE] of the smaller of the two quads’ edge-length scales. Among all eligible corner pairs, the closest are matched first; each corner links at most once.