fix draw_cuboid

This commit is contained in:
jan 2016-05-02 13:41:15 -07:00
parent ea56eb93ff
commit e135f8147e

View File

@ -586,7 +586,7 @@ class Grid(object):
p = numpy.array([[-dimensions[0], +dimensions[1]],
[+dimensions[0], +dimensions[1]],
[+dimensions[0], -dimensions[1]],
[-dimensions[0], -dimensions[1]]], dtype=float)
[-dimensions[0], -dimensions[1]]], dtype=float) / 2
thickness = dimensions[2]
self.draw_polygon(Direction.z, center, p, thickness, eps)