fix draw_cuboid
This commit is contained in:
parent
ea56eb93ff
commit
e135f8147e
@ -586,7 +586,7 @@ class Grid(object):
|
|||||||
p = numpy.array([[-dimensions[0], +dimensions[1]],
|
p = numpy.array([[-dimensions[0], +dimensions[1]],
|
||||||
[+dimensions[0], +dimensions[1]],
|
[+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]
|
thickness = dimensions[2]
|
||||||
self.draw_polygon(Direction.z, center, p, thickness, eps)
|
self.draw_polygon(Direction.z, center, p, thickness, eps)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user