Commit 802c3ebf authored by Isaak Lim's avatar Isaak Lim

make edge_indices a list since len(zip) does not work

parent 623523b1
......@@ -153,7 +153,8 @@ class Context(object):
mat.polygonOffsetUnits = 0.1
if edge_indices is None:
edge_indices = zip(np.arange(0, len(vertices)-1), np.arange(1, len(vertices)))
edge_indices = list(zip(np.arange(0, len(vertices)-1),
np.arange(1, len(vertices))))
assert(len(edge_indices) > 0 and len(vertices) > 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment