/**
 *
 * @param {SSubGroup} pg1
 * @param {SSubGroup } pg2
 * @returns {boolean}
 */
export function CompareSubGroups(pg1, pg2) {
    const n = pg1.iNrFaces;

    if (n !== pg2.iNrFaces) {
        return false;
    }

    const tris_1 = pg1.pTriMembers;
    const tris_2 = pg2.pTriMembers;

    for (let i = 0; i < n; i++) {

        if (tris_1[i] !== tris_2[i]) {
            return false
        }

    }

    return true;
}
