def getPath(edges, pathIndexes, loop, z):
 path = []
 for pathIndexIndex in xrange(len(pathIndexes)):
  pathIndex = pathIndexes[pathIndexIndex]
  edge = edges[pathIndex]
  carveIntersection = getCarveIntersectionFromEdge(edge, loop, z)
  path.append(carveIntersection)
 return path

def getPath ( edges , pathIndexes , loop , z ) : path = [ ] for pathIndexIndex in xrange ( len ( pathIndexes ) ) : pathIndex = pathIndexes [ pathIndexIndex ] edge = edges [ pathIndex ] carveIntersection = getCarveIntersectionFromEdge ( edge , loop , z ) path . append ( carveIntersection ) return path
get the path from the edge intersections .