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)
......@@ -289,4 +290,4 @@ class Context(object):
self.draw_text(str(round(extends[1], 3)), (boxEdges[0] * 0.25 + boxEdges[2] * 0.75), color = 'black', height=extends[1]/20)
self.draw_text(str(round(extends[2], 3)), (boxEdges[0] * 0.25 + boxEdges[3] * 0.75), color = 'black', height=extends[1]/20)
display(self.renderer)
\ No newline at end of file
display(self.renderer)
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