pub fn verify_connectivity(
blocks: &[Block],
face_matches: &[FaceMatch],
tol: Float,
) -> (Vec<FaceMatch>, Vec<FaceMatch>)Expand description
For each face match:
- GCD-reduce blocks and scale indices.
- Extract both faces as canonical 2D grids.
- Try stored
permutation_indexfirst (if available). - Fall back to
try_all_permutationsif needed. - On success, update the
FaceMatchwith the correctpermutation_index.
ยงReturns
(verified, mismatched) vectors of face matches.