def getSpacedPortionDirections(interpolationDictionary):
 portionDirections = []
 for interpolationDictionaryValue in interpolationDictionary.values():
  portionDirections += interpolationDictionaryValue.portionDirections
 portionDirections.sort(comparePortionDirection)
 if (len(portionDirections) < 1):
  return []
 spacedPortionDirections = [portionDirections[0]]
 for portionDirection in portionDirections[1:]:
  addSpacedPortionDirection(portionDirection, spacedPortionDirections)
 return spacedPortionDirections

def getSpacedPortionDirections ( interpolationDictionary ) : portionDirections = [ ] for interpolationDictionaryValue in interpolationDictionary . values ( ) : portionDirections += interpolationDictionaryValue . portionDirections portionDirections . sort ( comparePortionDirection ) if ( len ( portionDirections ) < 1 ) : return [ ] spacedPortionDirections = [ portionDirections [ 0 ] ] for portionDirection in portionDirections [ 1 : ] : addSpacedPortionDirection ( portionDirection , spacedPortionDirections ) return spacedPortionDirections
get sorted portion directions .