Closed floRoth closed 8 years ago
If a box is drawn, the lower left corner ist not rectangular. There is a quadrat with edge length of half the width missing.
Fixed it in shapes.Box
points = np.array([[point1[0], point1[1]-0.5_width], [point1[0], point2[1]], [point2[0], point2[1]], [point2[0], point1[1]], [point1[0]-0.5_width, point1[1]]])
Greetings
Flo
Fixed it. See comment above.
If a box is drawn, the lower left corner ist not rectangular. There is a quadrat with edge length of half the width missing.
Fixed it in shapes.Box
added -0.5*width
points = np.array([[point1[0], point1[1]-0.5_width], [point1[0], point2[1]], [point2[0], point2[1]], [point2[0], point1[1]], [point1[0]-0.5_width, point1[1]]])
Greetings
Flo