Make get_triangles() an iterator.

This is more pythonic and the triangles can still be explicitely put in
a list using list(get_triangles()).