align_mesh_boundary_loops
align_mesh_boundary_loops(verts, A, B):
Find the best starting offset and traversal direction for loop B so
that walking it lines up with walking loop A, using a short
lookahead to score both candidate directions. Two loops bounding the
same seam are typically traced in opposite directions (each patch’s
boundary is oriented outward via its own triangles), so this often
picks the reversed direction – that’s expected, not a bug.