def addBottomLoop(deltaZ, loops):
 bottomLoop = loops[0]
 bottomAddition = []
 bottomZ = (euclidean.getBottomByPath(bottomLoop) + deltaZ)
 for point in bottomLoop:
  bottomAddition.append(Vector3Index(len(bottomAddition), point.x, point.y, bottomZ))
 loops.insert(0, bottomAddition)
 numberOfVertexes = 0
 for loop in loops:
  for point in loop:
   point.index = numberOfVertexes
   numberOfVertexes += 1

def addBottomLoop ( deltaZ , loops ) : bottomLoop = loops [ 0 ] bottomAddition = [ ] bottomZ = ( euclidean . getBottomByPath ( bottomLoop ) + deltaZ ) for point in bottomLoop : bottomAddition . append ( Vector3Index ( len ( bottomAddition ) , point . x , point . y , bottomZ ) ) loops . insert ( 0 , bottomAddition ) numberOfVertexes = 0 for loop in loops : for point in loop : point . index = numberOfVertexes numberOfVertexes += 1
add bottom loop to loops .