def addPillarByLoops(faces, indexedLoops):
 if (len(indexedLoops) < 1):
  return
 if (len(indexedLoops[(-1)]) < 1):
  addFacesByConvexLoops(faces, indexedLoops)
  return
 addFacesByLoopReversed(faces, indexedLoops[0])
 addFacesByConvexLoops(faces, indexedLoops)
 addFacesByLoop(faces, indexedLoops[(-1)])

def addPillarByLoops ( faces , indexedLoops ) : if ( len ( indexedLoops ) < 1 ) : return if ( len ( indexedLoops [ ( - 1 ) ] ) < 1 ) : addFacesByConvexLoops ( faces , indexedLoops ) return addFacesByLoopReversed ( faces , indexedLoops [ 0 ] ) addFacesByConvexLoops ( faces , indexedLoops ) addFacesByLoop ( faces , indexedLoops [ ( - 1 ) ] )
add pillar by loops which may be concave .