zhigangjiang
commited on
Commit
•
1df7c02
1
Parent(s):
f9e6ff7
Update visualization/floorplan.py
Browse files
visualization/floorplan.py
CHANGED
@@ -43,7 +43,7 @@ def draw_floorplan(xz, fill_color=None, border_color=None, side_l=512, show_radi
|
|
43 |
# |------------u
|
44 |
xz[:, 1] = -xz[:, 1]
|
45 |
xz += side_l // 2 # moving to center
|
46 |
-
xz = xz.astype(np.
|
47 |
cv2.fillPoly(board, [xz], fill_color)
|
48 |
if border_color:
|
49 |
cv2.drawContours(board, [xz], 0, border_color, 2)
|
|
|
43 |
# |------------u
|
44 |
xz[:, 1] = -xz[:, 1]
|
45 |
xz += side_l // 2 # moving to center
|
46 |
+
xz = xz.astype(np.int32)
|
47 |
cv2.fillPoly(board, [xz], fill_color)
|
48 |
if border_color:
|
49 |
cv2.drawContours(board, [xz], 0, border_color, 2)
|