def fanTriangleIndices(faces):
    """Returns the indices needed to break the faces of a polyhedron into
    a set of triangle faces"""
    for face in faces:
        for i, j in zip(face[1:], face[2:]):
            yield face[0], i, j
