Skip to content

Commit 97fc9d3

Browse files
authored
fix surf2vol error when face havs 5 columns
1 parent e3d3e4d commit 97fc9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iso2mesh/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,9 @@ def surf2vol(node, face, xi, yi, zi, **kwargs):
661661
if face.shape[1] == 5:
662662
label = 1
663663
el = face
664-
face = np.empty((0, 4))
664+
face = np.empty((0, 4), dtype="int64")
665665
for lbl in elabel:
666-
fc = volface(el[el[:, 4] == lbl, :4])
666+
fc, _ = volface(el[el[:, 4] == lbl, :4])
667667
fc = np.hstack((fc, np.full((fc.shape[0], 1), lbl)))
668668
face = np.vstack((face, fc))
669669
else:

0 commit comments

Comments
 (0)