Commit
·
a6d4f44
1
Parent(s):
35c91c9
coordinate system
Browse files- hoho/vis.py +3 -2
hoho/vis.py
CHANGED
|
@@ -50,8 +50,9 @@ def show_grid(edges, meshes=None, row_length=5):
|
|
| 50 |
|
| 51 |
T = np.eye(4)
|
| 52 |
out = []
|
| 53 |
-
|
| 54 |
-
|
|
|
|
| 55 |
# print(row_height, col_width)
|
| 56 |
|
| 57 |
if meshes is None:
|
|
|
|
| 50 |
|
| 51 |
T = np.eye(4)
|
| 52 |
out = []
|
| 53 |
+
edges = [sum(e[1:], e[0]) for e in edges]
|
| 54 |
+
row_height = 1.1 * max((e.extents for e in edges), key=lambda e: e[1])[2]
|
| 55 |
+
col_width = 1.1 * max((e.extents for e in edges), key=lambda e: e[0])[0]
|
| 56 |
# print(row_height, col_width)
|
| 57 |
|
| 58 |
if meshes is None:
|