Commit b2cf6f9f authored by Isaak Lim's avatar Isaak Lim

use list comprehension for minCorner text (python3 map returns generator object and not a list)

parent ce854033
......@@ -278,7 +278,7 @@ class Context(object):
self.minCorner + [0, 0, extends[2]]]
self.draw_edges(boxEdges, [[0, 1], [0, 2], [0, 3]], FaceAttribute([[1, 0, 0], [0, 1, 0], [0, 0, 1]]))
self.draw_text(str(map( lambda v: round(v, 3), self.minCorner)), self.minCorner - [0, extends[1]*0.1, 0], color = 'black', height=extends[1]/25)
self.draw_text(str([round(v,3) for v in self.minCorner]), self.minCorner - [0, extends[1]*0.1, 0], color = 'black', height=extends[1]/25)
self.draw_text(str(round(extends[0], 3)), (boxEdges[0] * 0.25 + boxEdges[1] * 0.75), color = 'black', height=extends[1]/20)
self.draw_text(str(round(extends[1], 3)), (boxEdges[0] * 0.25 + boxEdges[2] * 0.75), color = 'black', height=extends[1]/20)
......
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