/**
 *
 * @param {TopoVertex} a
 * @param {TopoVertex} b
 * @returns {boolean}
 */
export function query_vertex_pair_share_face(a, b) {
    const a_faces = a.faces;
    const b_faces = b.faces;

    const a_face_count = a_faces.length;
    const b_face_count = b_faces.length;

    for (let i = 0; i < a_face_count; i++) {
        for (let j = 0; j < b_face_count; j++) {

            if (a_faces[i] === b_faces[j]) {
                return true;
            }
        }
    }

    return false;
}
