def addFacesByMeldedConvexLoops(faces, indexedLoops):
 if (len(indexedLoops) < 2):
  return
 for indexedLoopsIndex in xrange((len(indexedLoops) - 2)):
  FaceGenerator(faces, indexedLoops[indexedLoopsIndex], indexedLoops[(indexedLoopsIndex + 1)])
 indexedLoopBottom = indexedLoops[(-2)]
 indexedLoopTop = indexedLoops[(-1)]
 if (len(indexedLoopTop) < 1):
  indexedLoopTop = indexedLoops[0]
 FaceGenerator(faces, indexedLoopBottom, indexedLoopTop)

def addFacesByMeldedConvexLoops ( faces , indexedLoops ) : if ( len ( indexedLoops ) < 2 ) : return for indexedLoopsIndex in xrange ( ( len ( indexedLoops ) - 2 ) ) : FaceGenerator ( faces , indexedLoops [ indexedLoopsIndex ] , indexedLoops [ ( indexedLoopsIndex + 1 ) ] ) indexedLoopBottom = indexedLoops [ ( - 2 ) ] indexedLoopTop = indexedLoops [ ( - 1 ) ] if ( len ( indexedLoopTop ) < 1 ) : indexedLoopTop = indexedLoops [ 0 ] FaceGenerator ( faces , indexedLoopBottom , indexedLoopTop )
add faces from melded loops .