def getXIntersectionsFromIntersections(xIntersectionIndexList):
 xIntersections = []
 fill = False
 solid = False
 solidTable = {}
 xIntersectionIndexList.sort()
 for solidX in xIntersectionIndexList:
  if (solidX.index >= 0):
   toggleHashtable(solidTable, solidX.index, '')
  else:
   fill = (not fill)
  oldSolid = solid
  solid = ((len(solidTable) == 0) and fill)
  if (oldSolid != solid):
   xIntersections.append(solidX.x)
 return xIntersections

def getXIntersectionsFromIntersections ( xIntersectionIndexList ) : xIntersections = [ ] fill = False solid = False solidTable = { } xIntersectionIndexList . sort ( ) for solidX in xIntersectionIndexList : if ( solidX . index >= 0 ) : toggleHashtable ( solidTable , solidX . index , '' ) else : fill = ( not fill ) oldSolid = solid solid = ( ( len ( solidTable ) == 0 ) and fill ) if ( oldSolid != solid ) : xIntersections . append ( solidX . x ) return xIntersections
get x intersections from the x intersection index list .