Skip to content

Commit

Permalink
numpy cross deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Jul 17, 2024
1 parent 04a1abe commit 9da5d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spatial_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
intersection_vertices = vertices[intersection_faces]
U = intersection_vertices[:, 1] - intersection_vertices[:, 0]
V = intersection_vertices[:, 2] - intersection_vertices[:, 0]
full_area = 0.5 * np.abs(np.cross(V, U))
full_area = 0.5 * np.abs(U[:, 0] * V[:, 1] - U[:, 1] * V[:, 0])
ratio = area / full_area

fig, ax = plt.subplots()
Expand Down

0 comments on commit 9da5d94

Please sign in to comment.