def getAddIndexedLoop(loop, vertexes, z):
 indexedLoop = []
 for index in xrange(len(loop)):
  pointComplex = loop[index]
  vector3index = Vector3Index(len(vertexes), pointComplex.real, pointComplex.imag, z)
  indexedLoop.append(vector3index)
  vertexes.append(vector3index)
 return indexedLoop

def getAddIndexedLoop ( loop , vertexes , z ) : indexedLoop = [ ] for index in xrange ( len ( loop ) ) : pointComplex = loop [ index ] vector3index = Vector3Index ( len ( vertexes ) , pointComplex . real , pointComplex . imag , z ) indexedLoop . append ( vector3index ) vertexes . append ( vector3index ) return indexedLoop
get and add an indexed loop .