Simplify the contact detection in Ig2_GridConnection_GridConnection_GridCoGridCoGeom.