Skip to content

Commit d7d2dff

Browse files
committed
directions were switched
1 parent d78be71 commit d7d2dff

File tree

1 file changed

+2
-2
lines changed
  • src/compas/datastructures/mesh

1 file changed

+2
-2
lines changed

src/compas/datastructures/mesh/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,14 +639,14 @@ def from_meshgrid(cls, dx, nx, dy=None, ny=None):
639639
dy = dy or dx
640640
ny = ny or nx
641641

642-
V, U = meshgrid(linspace(0, dx, nx + 1), linspace(0, dy, ny + 1), indexing='ij')
642+
U, V = meshgrid(linspace(0, dx, nx + 1), linspace(0, dy, ny + 1), indexing='ij')
643643

644644
quads = [[
645645
[U[i + 0][j + 0], V[i + 0][j + 0], 0.0],
646646
[U[i + 0][j + 1], V[i + 0][j + 1], 0.0],
647647
[U[i + 1][j + 1], V[i + 1][j + 1], 0.0],
648648
[U[i + 1][j + 0], V[i + 1][j + 0], 0.0]
649-
] for i, j in product(range(ny), range(nx))]
649+
] for i, j in product(range(nx), range(ny))]
650650

651651
return cls.from_polygons(quads)
652652

0 commit comments

Comments
 (0)