def addXIntersectionIndexesFromXIntersections(index, xIntersectionIndexList, xIntersections):
 for xIntersection in xIntersections:
  xIntersectionIndexList.append(XIntersectionIndex(index, xIntersection))

def addXIntersectionIndexesFromXIntersections ( index , xIntersectionIndexList , xIntersections ) : for xIntersection in xIntersections : xIntersectionIndexList . append ( XIntersectionIndex ( index , xIntersection ) )
add the x intersection indexes from the xintersections .