Skip to content

Commit 0d6e2a2

Browse files
Jammy2211Jammy2211
authored andcommitted
another fix
1 parent 9a255a5 commit 0d6e2a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autoarray/structures/mesh/triangulation_2d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ def voronoi_areas_from(points_np):
3434
region_areas[i] = -1
3535
else:
3636

37-
x = points_np[:, 1]
38-
y = points_np[:, 0]
37+
points_of_region = voronoi_vertices[region_vertices_indexes]
38+
39+
x = points_of_region[:, 1]
40+
y = points_of_region[:, 0]
3941

4042
region_areas[i] = 0.5 * np.abs(
4143
np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1))

0 commit comments

Comments
 (0)