Skip to content

Commit

Permalink
Fixed bad indices
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 19, 2022
1 parent b273acb commit 1b9e858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ctem/ctem/ctem_viewer_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def ctem2mesh(self, surface_file):
faces[fidx[1],:] = [i0, i2, i3]
# Make the two west side triangles
if i > 0:
faces[fidx[0],:] = [i0, i3, i3-1]
faces[fidx[1],:] = [i0, i3-1, i0-1]
faces[fidx[2],:] = [i0, i3, i2-1]
faces[fidx[3],:] = [i0, i2-1, i1-1]
# Make the two south side triangles
if j > 0:
faces[fidx[4],:] = [i1, i0, i3-s ]
Expand Down

0 comments on commit 1b9e858

Please sign in to comment.